Parcourir la source

Fix issue with query

Ajay Tripathy il y a 4 ans
Parent
commit
4ec2419998
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg/prom/diagnostics.go

+ 1 - 1
pkg/prom/diagnostics.go

@@ -109,7 +109,7 @@ func GetPrometheusMetrics(client prometheus.Client, offset string) ([]*Prometheu
 		},
 		},
 		{
 		{
 			ID:          "cadvisorLabel",
 			ID:          "cadvisorLabel",
-			Query:       fmt.Sprintf(`absent_over_time(container_cpu_usage_seconds_total{container_name!="",pod_name!="",instance!~"10.*|192.*|172.*"}[5m]  %s)`, offset),
+			Query:       fmt.Sprintf(`absent_over_time(container_cpu_usage_seconds_total{container!="",pod!=""}[5m]  %s)`, offset),
 			Label:       "Expected cAdvsior labels available",
 			Label:       "Expected cAdvsior labels available",
 			Description: "Determine if expected cAdvisor labels are present during last 5 minutes.",
 			Description: "Determine if expected cAdvisor labels are present during last 5 minutes.",
 			DocLink:     fmt.Sprintf("%s#cadvisor-metrics-available", docs),
 			DocLink:     fmt.Sprintf("%s#cadvisor-metrics-available", docs),