From b13865d36199fdcd76224397b101e47979ac1dbe Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Fri, 3 Feb 2023 11:55:33 +0100 Subject: [PATCH] templates/dashboards/worker: edit thresholds 95th percentile duration is now a fixed colour, as it's tricky to get dynamic thresholds based on the job type. Budget remaining thresholds are now only green at infinity, turn yellow below 4 weeks, and turn red when budget consumption would only last 3 weeks (out of 4). --- ...image-builder-worker-general.configmap.yml | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/templates/dashboards/grafana-dashboard-image-builder-worker-general.configmap.yml b/templates/dashboards/grafana-dashboard-image-builder-worker-general.configmap.yml index c123c6405..090d93055 100644 --- a/templates/dashboards/grafana-dashboard-image-builder-worker-general.configmap.yml +++ b/templates/dashboards/grafana-dashboard-image-builder-worker-general.configmap.yml @@ -34,7 +34,7 @@ data: "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1675349556888, + "iteration": 1675420979872, "links": [], "liveNow": false, "panels": [ @@ -399,11 +399,11 @@ data: }, { "color": "#EAB839", - "value": 40 + "value": 504 }, { "color": "green", - "value": 50 + "value": 672 } ] }, @@ -584,7 +584,8 @@ data: "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "decimals": 0, "mappings": [ @@ -720,7 +721,11 @@ data: }, { "color": "dark-purple", - "value": 1560 + "value": 32 + }, + { + "color": "dark-purple", + "value": 1792 } ] }, @@ -945,7 +950,7 @@ data: "match": "null", "result": { "index": 0, - "text": "1.40 days" + "text": "∞" } }, "type": "special" @@ -971,11 +976,11 @@ data: }, { "color": "#EAB839", - "value": 40 + "value": 504 }, { "color": "green", - "value": 50 + "value": 672 } ] }, @@ -1156,7 +1161,8 @@ data: "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "decimals": 0, "mappings": [ @@ -1285,14 +1291,6 @@ data: { "color": "green", "value": null - }, - { - "color": "#EAB839", - "value": "175" - }, - { - "color": "red", - "value": "200" } ] },