瀏覽代碼

Merge pull request #8145 from mrsiano/dashboard_metrics

avoid drop_column_labels in query.
Scott Dodson 6 年之前
父節點
當前提交
7973fe6121
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      roles/openshift_grafana/files/dashboards/openshift-cluster-monitoring.json

+ 3 - 3
roles/openshift_grafana/files/dashboards/openshift-cluster-monitoring.json

@@ -3661,7 +3661,7 @@
 			  "steppedLine": false,
 			  "targets": [
 				{
-				  "expr": "drop_common_labels(sort_desc(sum without (cpu) (irate(container_cpu_usage_seconds_total{container_name=\"prometheus\"}[5m]))))",
+				  "expr": "sort_desc(sum without (cpu) (irate(container_cpu_usage_seconds_total{container_name=\"prometheus\"}[5m])))",
 				  "format": "time_series",
 				  "intervalFactor": 2,
 				  "refId": "A",
@@ -3748,7 +3748,7 @@
 			  "steppedLine": false,
 			  "targets": [
 				{
-				  "expr": "sort_desc(drop_common_labels(sum without (instance,type,client,contentType) (irate(apiserver_request_count{verb!~\"GET|LIST|WATCH\"}[Xs])))) > 0",
+				  "expr": "sort_desc(sum without (instance,type,client,contentType) (irate(apiserver_request_count{verb!~\"GET|LIST|WATCH\"}[Xs]))) > 0",
 				  "format": "time_series",
 				  "intervalFactor": 2,
 				  "refId": "A",
@@ -3823,7 +3823,7 @@
 			  "steppedLine": false,
 			  "targets": [
 				{
-				  "expr": "sort_desc(drop_common_labels(sum without (instance,type,client,contentType) (irate(apiserver_request_count{verb=~\"GET|LIST|WATCH\"}[Xs])))) > 0",
+				  "expr": "sort_desc(sum without (instance,type,client,contentType) (irate(apiserver_request_count{verb=~\"GET|LIST|WATCH\"}[Xs]))) > 0",
 				  "format": "time_series",
 				  "intervalFactor": 2,
 				  "refId": "A",