Skip to content

Commit

Permalink
fix: pod cpu/memory usage metrics grouped by id as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-ilavsky committed Nov 21, 2024
1 parent 6c07ab2 commit ffb64d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboards/k8s-views-pods.json
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", pod=~\"$pod\", image!=\"\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container)",
"expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", pod=~\"$pod\", image!=\"\", container!=\"\", cluster=\"$cluster\"}[$__rate_interval])) by (container, id)",
"interval": "$resolution",
"legendFormat": "{{ container }}",
"range": true,
Expand Down Expand Up @@ -1690,7 +1690,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", pod=~\"$pod\", image!=\"\", container!=\"\", cluster=\"$cluster\"}) by (container)",
"expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", pod=~\"$pod\", image!=\"\", container!=\"\", cluster=\"$cluster\"}) by (container, id)",
"interval": "",
"legendFormat": "{{ container }}",
"range": true,
Expand Down

0 comments on commit ffb64d7

Please sign in to comment.