Merge pull request #3098 from Santosh1176/monitoring

[Grafana] Use `container_memory_working_set_bytes` to report memory consumption
This commit is contained in:
Stefan Prodan 2022-09-29 11:16:10 +03:00 committed by GitHub
commit b8fd46d0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -548,7 +548,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(go_memstats_alloc_bytes_total{namespace=\"$namespace\",pod=~\".*-controller-.*\"}[1m])",
"expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\",container!=\"POD\",container!=\"\",pod=~\".*-controller-.*\"}) by (pod)",
"hide": false,
"interval": "",
"legendFormat": "{{pod}}",