Skip to content

Commit

Permalink
fix(grafana): Correct CPU resource limit metric name
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Kofink <[email protected]>
  • Loading branch information
akofink committed Sep 10, 2021
1 parent 8bf5c7a commit 9519c56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(container_cpu_usage_seconds_total{pod=~\"compliance-.*\"}[$interval])) by (container)/ sum(kube_pod_container_resource_limits_cpu_cores{pod=~\"compliance-.*\"}) by (container)",
"expr": "sum(rate(container_cpu_usage_seconds_total{pod=~\"compliance-.*\"}[$interval])) by (container)/ sum(kube_pod_container_resource_limits{resource=\"cpu\",pod=~\"compliance-.*\"}) by (container)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{container}}",
Expand Down

0 comments on commit 9519c56

Please sign in to comment.