From 75ad6c1b4991654aab990d4010c1eecd020794e6 Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Wed, 19 Jun 2024 15:40:34 +0800 Subject: [PATCH] vmalert-dashboard: replace variable query metric (#6505) `vmalert_iteration_total` series number is 4 time less than `vmalert_iteration_duration_seconds`, queries will be lighter. --- dashboards/vm/vmalert.json | 4 ++-- dashboards/vmalert.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboards/vm/vmalert.json b/dashboards/vm/vmalert.json index d990555fc..3acf3edb7 100644 --- a/dashboards/vm/vmalert.json +++ b/dashboards/vm/vmalert.json @@ -3527,14 +3527,14 @@ "type": "victoriametrics-datasource", "uid": "$ds" }, - "definition": "label_values(vmalert_iteration_duration_seconds{job=~\"$job\", instance=~\"$instance\"}, group)", + "definition": "label_values(vmalert_iteration_total{job=~\"$job\", instance=~\"$instance\"}, group)", "hide": 0, "includeAll": true, "multi": true, "name": "group", "options": [], "query": { - "query": "label_values(vmalert_iteration_duration_seconds{job=~\"$job\", instance=~\"$instance\"}, group)", + "query": "label_values(vmalert_iteration_total{job=~\"$job\", instance=~\"$instance\"}, group)", "refId": "StandardVariableQuery" }, "refresh": 1, diff --git a/dashboards/vmalert.json b/dashboards/vmalert.json index e7904f189..d1d44ecf2 100644 --- a/dashboards/vmalert.json +++ b/dashboards/vmalert.json @@ -3526,14 +3526,14 @@ "type": "prometheus", "uid": "$ds" }, - "definition": "label_values(vmalert_iteration_duration_seconds{job=~\"$job\", instance=~\"$instance\"}, group)", + "definition": "label_values(vmalert_iteration_total{job=~\"$job\", instance=~\"$instance\"}, group)", "hide": 0, "includeAll": true, "multi": true, "name": "group", "options": [], "query": { - "query": "label_values(vmalert_iteration_duration_seconds{job=~\"$job\", instance=~\"$instance\"}, group)", + "query": "label_values(vmalert_iteration_total{job=~\"$job\", instance=~\"$instance\"}, group)", "refId": "StandardVariableQuery" }, "refresh": 1,