dashboards/cluster: fix using storage filter for cache usage panel (#4657)

Using `job=~$job_storage` forces "Cache usage" panel to display only vmstorage caches, but there is a cache peresent at vmselect(`promql/rollupResult`).
Updated selector to match generic `$job` so that all caches will be displayed with an option to display per-job caches.

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
Zakhar Bessarab 2023-07-18 13:40:40 +04:00 committed by GitHub
parent beaad4a227
commit 6f3fee197e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3503,7 +3503,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "max(\n vm_cache_size_bytes{job=~\"$job_storage\", instance=~\"$instance\"} \n /\n vm_cache_size_max_bytes{job=~\"$job\", instance=~\"$instance\"}\n) by(type)",
"expr": "max(\n vm_cache_size_bytes{job=~\"$job\", instance=~\"$instance\"} \n /\n vm_cache_size_max_bytes{job=~\"$job\", instance=~\"$instance\"}\n) by(type)",
"interval": "",
"legendFormat": "__auto",
"range": true,