From cf31fe78fba99f6caf0f33fb9e2ae9008d43e530 Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Tue, 12 Nov 2024 17:56:17 -0700 Subject: [PATCH] dashboards: set Y-min to 0 for stats panel with range queries Y-min set to 0 gives better understanding of changes, as it shows absolute change. Otherwise, the panel will show relative change and could make a false impression of the changes. Other panels in dashboards are either instant (no historical data displayed), or already set to Y-min: 0. Signed-off-by: hagen1778 --- dashboards/backupmanager.json | 6 +++ dashboards/operator.json | 6 ++- dashboards/vm/backupmanager.json | 6 +++ dashboards/vm/operator.json | 6 ++- dashboards/vm/vmagent.json | 68 ++++++++++++-------------------- dashboards/vm/vmalert.json | 21 +++++----- dashboards/vm/vmauth.json | 1 + dashboards/vmagent.json | 68 ++++++++++++-------------------- dashboards/vmalert.json | 19 +++++---- dashboards/vmauth.json | 1 + 10 files changed, 95 insertions(+), 107 deletions(-) diff --git a/dashboards/backupmanager.json b/dashboards/backupmanager.json index 74c3c9d27..cf53d6056 100644 --- a/dashboards/backupmanager.json +++ b/dashboards/backupmanager.json @@ -158,6 +158,7 @@ "color": { "mode": "thresholds" }, + "min": 0, "mappings": [ { "options": { @@ -233,6 +234,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -297,6 +299,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -361,6 +364,7 @@ "color": { "mode": "thresholds" }, + "min": 0, "mappings": [ { "options": { @@ -450,6 +454,7 @@ "type": "value" } ], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -523,6 +528,7 @@ "type": "value" } ], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ diff --git a/dashboards/operator.json b/dashboards/operator.json index 7f34a3fc4..37b070b3e 100644 --- a/dashboards/operator.json +++ b/dashboards/operator.json @@ -101,6 +101,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -242,6 +243,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -311,6 +313,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -365,7 +368,7 @@ "refId": "A" } ], - "title": "Electer Leaders", + "title": "Elected Leaders", "type": "stat" }, { @@ -382,6 +385,7 @@ "mappings": [], "thresholds": { "mode": "absolute", + "min": 0, "steps": [ { "color": "green", diff --git a/dashboards/vm/backupmanager.json b/dashboards/vm/backupmanager.json index 52917aa28..74b0d3f25 100644 --- a/dashboards/vm/backupmanager.json +++ b/dashboards/vm/backupmanager.json @@ -159,6 +159,7 @@ "color": { "mode": "thresholds" }, + "min": 0, "mappings": [ { "options": { @@ -234,6 +235,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -298,6 +300,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -362,6 +365,7 @@ "color": { "mode": "thresholds" }, + "min": 0, "mappings": [ { "options": { @@ -451,6 +455,7 @@ "type": "value" } ], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -524,6 +529,7 @@ "type": "value" } ], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ diff --git a/dashboards/vm/operator.json b/dashboards/vm/operator.json index e28377b9b..652adaf8a 100644 --- a/dashboards/vm/operator.json +++ b/dashboards/vm/operator.json @@ -102,6 +102,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -243,6 +244,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -312,6 +314,7 @@ "mode": "thresholds" }, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -366,7 +369,7 @@ "refId": "A" } ], - "title": "Electer Leaders", + "title": "Elected Leaders", "type": "stat" }, { @@ -383,6 +386,7 @@ "mappings": [], "thresholds": { "mode": "absolute", + "min": 0, "steps": [ { "color": "green", diff --git a/dashboards/vm/vmagent.json b/dashboards/vm/vmagent.json index 64cbb72ed..6adce9792 100644 --- a/dashboards/vm/vmagent.json +++ b/dashboards/vm/vmagent.json @@ -142,6 +142,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -211,6 +212,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -281,6 +283,7 @@ "defaults": { "decimals": 1, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -344,6 +347,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -525,6 +529,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -1115,8 +1120,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1225,8 +1229,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1617,8 +1620,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1732,8 +1734,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1844,8 +1845,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1980,8 +1980,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2112,8 +2111,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2218,8 +2216,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2325,8 +2322,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2432,8 +2428,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2538,8 +2533,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2668,8 +2662,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2773,8 +2766,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2881,8 +2873,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" }, { "color": "red", @@ -2989,8 +2980,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" }, { "color": "red", @@ -3096,8 +3086,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3203,8 +3192,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3316,8 +3304,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3421,8 +3408,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3498,8 +3484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3655,8 +3640,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", diff --git a/dashboards/vm/vmalert.json b/dashboards/vm/vmalert.json index f0eb76881..ce6284ec9 100644 --- a/dashboards/vm/vmalert.json +++ b/dashboards/vm/vmalert.json @@ -232,6 +232,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -294,6 +295,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -356,6 +358,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -422,6 +425,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -968,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1071,8 +1074,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2090,8 +2092,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2247,8 +2248,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2353,8 +2353,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3764,7 +3763,7 @@ "options": [], "query": { "query": "label_values(vmalert_iteration_total{job=~\"$job\", instance=~\"$instance\"},file)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" + "refId": "VictoriaMetricsVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", diff --git a/dashboards/vm/vmauth.json b/dashboards/vm/vmauth.json index 5bc9d8b5b..28318e961 100644 --- a/dashboards/vm/vmauth.json +++ b/dashboards/vm/vmauth.json @@ -379,6 +379,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ diff --git a/dashboards/vmagent.json b/dashboards/vmagent.json index 1f2fb0312..e22d8d89e 100644 --- a/dashboards/vmagent.json +++ b/dashboards/vmagent.json @@ -141,6 +141,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -210,6 +211,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -280,6 +282,7 @@ "defaults": { "decimals": 1, "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -343,6 +346,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -524,6 +528,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -1114,8 +1119,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1224,8 +1228,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1616,8 +1619,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1731,8 +1733,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1843,8 +1844,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1979,8 +1979,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2111,8 +2110,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2217,8 +2215,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2324,8 +2321,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2431,8 +2427,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2537,8 +2532,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2667,8 +2661,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2772,8 +2765,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2880,8 +2872,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" }, { "color": "red", @@ -2988,8 +2979,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" }, { "color": "red", @@ -3095,8 +3085,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3202,8 +3191,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3315,8 +3303,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3420,8 +3407,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3497,8 +3483,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3654,8 +3639,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", diff --git a/dashboards/vmalert.json b/dashboards/vmalert.json index 77b8df4bb..8946ff55e 100644 --- a/dashboards/vmalert.json +++ b/dashboards/vmalert.json @@ -231,6 +231,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -293,6 +294,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -355,6 +357,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -421,6 +424,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -967,8 +971,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1070,8 +1073,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2089,8 +2091,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2246,8 +2247,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2352,8 +2352,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", diff --git a/dashboards/vmauth.json b/dashboards/vmauth.json index e81692876..35f54df39 100644 --- a/dashboards/vmauth.json +++ b/dashboards/vmauth.json @@ -378,6 +378,7 @@ "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [