You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inspectDeploymentDurationGauges=metrics.MustRegisterGaugeVec(metricsComponent, "inspect_deployment_duration", "Amount of time taken by a single inspection of a deployment (in sec)", metrics.DeploymentName)
39
+
)
40
+
36
41
// inspectDeployment inspects the entire deployment, creates
37
42
// a plan to update if needed and inspects underlying resources.
38
43
// This function should be called when:
@@ -42,13 +47,16 @@ import (
42
47
// Returns the delay until this function should be called again.
Copy file name to clipboardExpand all lines: pkg/deployment/resources/deployment_health.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ import (
31
31
)
32
32
33
33
var (
34
-
fetchDeploymentHealthCounters=metrics.MustRegisterCounterVec("deployment_resources", "fetchDeploymentHealth", "Number of times the health of the deployment was fetched", "deployment", "result")
34
+
deploymentHealthFetchesCounters=metrics.MustRegisterCounterVec(metricsComponent, "deployment_health_fetches", "Number of times the health of the deployment was fetched", metrics.DeploymentName, metrics.Result)
35
35
)
36
36
37
37
// RunDeploymentHealthLoop creates a loop to fetch the health of the deployment.
Copy file name to clipboardExpand all lines: pkg/deployment/resources/pod_inspector.go
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,8 @@ import (
36
36
)
37
37
38
38
var (
39
-
inspectedPodCounter=metrics.MustRegisterCounter("deployment", "inspected_pods", "Number of pod inspections")
39
+
inspectedPodsCounters=metrics.MustRegisterCounterVec(metricsComponent, "inspected_pods", "Number of pod inspections per deployment", metrics.DeploymentName)
40
+
inspectPodsDurationGauges=metrics.MustRegisterGaugeVec(metricsComponent, "inspect_pods_duration", "Amount of time taken by a single inspection of all pods for a deployment (in sec)", metrics.DeploymentName)
Copy file name to clipboardExpand all lines: pkg/deployment/resources/pvc_inspector.go
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,22 @@ import (
32
32
)
33
33
34
34
var (
35
-
inspectedPVCCounter=metrics.MustRegisterCounter("deployment", "inspected_ppvcs", "Number of PVCs inspections")
35
+
inspectedPVCsCounters=metrics.MustRegisterCounterVec(metricsComponent, "inspected_pvcs", "Number of PVC inspections per deployment", metrics.DeploymentName)
36
+
inspectPVCsDurationGauges=metrics.MustRegisterGaugeVec(metricsComponent, "inspect_pvcs_duration", "Amount of time taken by a single inspection of all PVCs for a deployment (in sec)", metrics.DeploymentName)
37
+
)
38
+
39
+
const (
36
40
maxPVCInspectorInterval=util.Interval(time.Hour) // Maximum time between PVC inspection (if nothing else happens)
37
41
)
38
42
39
43
// InspectPVCs lists all PVCs that belong to the given deployment and updates
40
44
// the member status of the deployment accordingly.
inspectedSecretsCounters=metrics.MustRegisterCounterVec(metricsComponent, "inspected_secrets", "Number of Secret inspections per deployment", metrics.DeploymentName)
39
+
inspectSecretsDurationGauges=metrics.MustRegisterGaugeVec(metricsComponent, "inspect_secrets_duration", "Amount of time taken by a single inspection of all Secrets for a deployment (in sec)", metrics.DeploymentName)
40
+
)
41
+
35
42
// EnsureSecrets creates all secrets needed to run the given deployment
0 commit comments