From 0a8d39e0d524a424183596580e6472bf1fab9045 Mon Sep 17 00:00:00 2001 From: Zakhar Bessarab Date: Tue, 18 Jul 2023 13:40:40 +0400 Subject: [PATCH] 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 --- dashboards/victoriametrics-cluster.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/victoriametrics-cluster.json b/dashboards/victoriametrics-cluster.json index deab75e2a..d4bdce4ab 100644 --- a/dashboards/victoriametrics-cluster.json +++ b/dashboards/victoriametrics-cluster.json @@ -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,