Skip to content

Commit

Permalink
fix: pod cpu/memory usage metrics grouped by id as well (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-ilavsky authored Nov 23, 2024
1 parent 6c07ab2 commit 3c305a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -2712,6 +2712,6 @@
"timezone": "",
"title": "Kubernetes / Views / Pods",
"uid": "k8s_views_pods",
"version": 32,
"version": 33,
"weekStart": ""
}

0 comments on commit 3c305a7

Please sign in to comment.