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.

(cherry picked from commit 75ad6c1b49)
This commit is contained in:
Hui Wang 2024-06-19 15:40:34 +08:00 committed by hagen1778
parent 8fd46caa22
commit 7a21e6cb6b
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640
2 changed files with 4 additions and 4 deletions

View file

@ -3527,14 +3527,14 @@
"type": "victoriametrics-datasource", "type": "victoriametrics-datasource",
"uid": "$ds" "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, "hide": 0,
"includeAll": true, "includeAll": true,
"multi": true, "multi": true,
"name": "group", "name": "group",
"options": [], "options": [],
"query": { "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" "refId": "StandardVariableQuery"
}, },
"refresh": 1, "refresh": 1,

View file

@ -3526,14 +3526,14 @@
"type": "prometheus", "type": "prometheus",
"uid": "$ds" "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, "hide": 0,
"includeAll": true, "includeAll": true,
"multi": true, "multi": true,
"name": "group", "name": "group",
"options": [], "options": [],
"query": { "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" "refId": "StandardVariableQuery"
}, },
"refresh": 1, "refresh": 1,