Skip to content

Commit

Permalink
fix: resources queries that can break on ns
Browse files Browse the repository at this point in the history
Signed-off-by: David Calvert <[email protected]>
  • Loading branch information
dotdc committed Sep 4, 2023
1 parent df42ae5 commit dc8c2f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dashboards/k8s-views-namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\", image=\"\"}[$__rate_interval])) / sum(machine_cpu_cores)",
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\", image!=\"\"}[$__rate_interval])) / sum(machine_cpu_cores)",
"instant": true,
"interval": "",
"legendFormat": "",
Expand Down Expand Up @@ -214,7 +214,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{namespace=~\"$namespace\", image=\"\"}) / sum(machine_memory_bytes)",
"expr": "sum(container_memory_working_set_bytes{namespace=~\"$namespace\", image!=\"\"}) / sum(machine_memory_bytes)",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -475,7 +475,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\", image=\"\"}[$__rate_interval]))",
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=~\"$namespace\", image!=\"\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -574,7 +574,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{namespace=~\"$namespace\", image=\"\"})",
"expr": "sum(container_memory_working_set_bytes{namespace=~\"$namespace\", image!=\"\"})",
"interval": "",
"legendFormat": "Real",
"range": true,
Expand Down Expand Up @@ -2255,6 +2255,6 @@
"timezone": "",
"title": "Kubernetes / Views / Namespaces",
"uid": "k8s_views_ns",
"version": 26,
"version": 27,
"weekStart": ""
}

0 comments on commit dc8c2f8

Please sign in to comment.