From a90d84f7965a49e042a64c447b14ec199ef3fb4e Mon Sep 17 00:00:00 2001 From: jenkins Date: Mon, 11 May 2026 01:01:46 -0300 Subject: [PATCH] monitoring(testing): use solid threshold bars --- scripts/dashboards_render_atlas.py | 48 +++--------- scripts/tests/test_dashboards_render_atlas.py | 22 ++++++ .../monitoring/dashboards/atlas-jobs.json | 75 +++++++++++++++---- .../monitoring/dashboards/atlas-testing.json | 75 +++++++++++++++---- .../monitoring/grafana-dashboard-jobs.yaml | 75 +++++++++++++++---- .../monitoring/grafana-dashboard-testing.yaml | 75 +++++++++++++++---- 6 files changed, 274 insertions(+), 96 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index a2c61604..04586efa 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -265,7 +265,7 @@ def gpu_usage_by_namespace(scope_var): def jetson_gpu_usage_by_namespace(scope_var): - requests_by_ns = jetson_gpu_requests(scope_var) + requests_by_ns = gpu_requests_by_namespace_node(scope_var) total_by_node = f"sum by (node) ({requests_by_ns})" return ( "sum by (namespace) (" @@ -1266,6 +1266,7 @@ def bargauge_panel( ], "fieldConfig": { "defaults": { + "color": {"mode": "thresholds"}, "unit": unit, "min": 0, "max": 100 if unit == "percent" else None, @@ -1312,6 +1313,15 @@ def bargauge_panel( return panel +def set_bargauge_display_mode(panels, display_mode): + """Apply a display mode to bar gauges, including gauges inside collapsed rows.""" + for panel in panels: + if panel.get("type") == "bargauge": + panel["options"]["displayMode"] = display_mode + if panel.get("panels"): + set_bargauge_display_mode(panel["panels"], display_mode) + + def text_panel(panel_id, title, content, grid): return { "id": panel_id, @@ -1366,15 +1376,6 @@ def link_to(uid): def build_overview(): panels = [] - count_thresholds = { - "mode": "absolute", - "steps": [ - {"color": "green", "value": None}, - {"color": "yellow", "value": 1}, - {"color": "orange", "value": 2}, - {"color": "red", "value": 3}, - ], - } age_thresholds = { "mode": "absolute", "steps": [ @@ -3096,7 +3097,6 @@ def build_jobs_dashboard(): runs_success_selector = f'{runs_selector},status=~"{success}"' runs_failure_selector = f'{runs_selector},status!~"{success}"' checks_selector = f'__name__=~".*_quality_gate_checks_total",suite=~"{suite_var}",{exported}' - tests_selector = f'__name__=~".*_quality_gate_tests_total",suite=~"{suite_var}",{exported}' coverage_metric_selector = f'__name__=~".*_quality_gate_coverage_percent",suite=~"{suite_var}",{exported}' workspace_coverage_selector = f'suite=~"{suite_var}",{exported}' smell_selector = f'suite=~"{suite_var}",{exported}' @@ -3134,9 +3134,6 @@ def build_jobs_dashboard(): f'and on(suite) (({runs_by_suite_24h}) > 0)) ' f'or on(suite) ((0 * ({runs_by_suite_24h})) - 1))' ) - failures_by_suite_24h = ( - f'sum by (suite) (increase(platform_quality_gate_runs_total{{{runs_failure_selector}}}[24h]))' - ) non_failure = PLATFORM_TEST_NON_FAILURE_STATUS current_gate_health_by_suite = ( f'(100 * sum by (suite) (max by (suite, check) (({{{checks_selector},result=~"{non_failure}"}} > bool 0))) ' @@ -3162,28 +3159,6 @@ def build_jobs_dashboard(): average_coverage = f"(avg(({coverage_by_suite})) or on() vector(0))" suites_loc_violating = f'(sum((({smell_by_suite}) > bool 0)) or on() vector(0))' - checks_failed_total = f'(sum({{{checks_selector},result!~"{non_failure}"}}) or on() vector(0))' - checks_failed_tests = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"tests|unit|build",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_coverage = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"coverage",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_loc = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"loc|smell",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_docs = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"docs|naming|hygiene|lint|docs_naming",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_gate = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"gate|glue|gate_glue",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_sonarqube = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"sonarqube|sonar",result!~"{non_failure}"}})) or on() vector(0))' - ) - checks_failed_supply_chain = ( - f'(sum(count by (suite) ({{{checks_selector},check=~"ironbank|supply_chain|image_compliance|artifact_security",result!~"{non_failure}"}})) or on() vector(0))' - ) check_regex_tests = "tests|unit|build" check_regex_coverage = "coverage" check_regex_loc = "loc|smell" @@ -3894,6 +3869,7 @@ def build_jobs_dashboard(): ] ) panels = compact_panels + set_bargauge_display_mode(panels, "basic") return { "uid": "atlas-jobs", diff --git a/scripts/tests/test_dashboards_render_atlas.py b/scripts/tests/test_dashboards_render_atlas.py index 8e78bfbb..3e1dc2e1 100644 --- a/scripts/tests/test_dashboards_render_atlas.py +++ b/scripts/tests/test_dashboards_render_atlas.py @@ -115,6 +115,28 @@ def test_jobs_dashboard_separates_current_gate_health_from_reliability(): ] +def test_jobs_dashboard_bar_gauges_use_solid_threshold_colors(): + mod = load_module() + dashboard = mod.build_jobs_dashboard() + panels = flatten_panels(dashboard["panels"]) + bar_gauges = [panel for panel in panels if panel["type"] == "bargauge"] + + assert bar_gauges + assert all(panel["options"]["displayMode"] == "basic" for panel in bar_gauges) + assert all( + panel["fieldConfig"]["defaults"]["color"]["mode"] == "thresholds" + for panel in bar_gauges + ) + + reliability_panel = next( + panel for panel in panels if panel["title"] == "Run Reliability by Suite (24h)" + ) + threshold_steps = reliability_panel["fieldConfig"]["defaults"]["thresholds"]["steps"] + + assert {"color": "yellow", "value": 93} in threshold_steps + assert {"color": "blue", "value": 100} in threshold_steps + + def test_jobs_dashboard_collapses_heavy_drilldowns_for_light_first_paint(): mod = load_module() dashboard = mod.build_jobs_dashboard() diff --git a/services/monitoring/dashboards/atlas-jobs.json b/services/monitoring/dashboards/atlas-jobs.json index ff80acea..dd7faef6 100644 --- a/services/monitoring/dashboards/atlas-jobs.json +++ b/services/monitoring/dashboards/atlas-jobs.json @@ -453,6 +453,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -486,7 +489,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -533,6 +536,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -576,7 +582,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -623,6 +629,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -652,7 +661,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -699,6 +708,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -742,7 +754,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -788,6 +800,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -830,7 +845,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -1865,6 +1880,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -1905,7 +1923,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2405,6 +2423,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2426,7 +2447,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2472,6 +2493,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2493,7 +2517,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2539,6 +2563,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2560,7 +2587,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2606,6 +2633,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2627,7 +2657,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2923,6 +2953,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2951,7 +2984,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2997,6 +3030,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3018,7 +3054,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3064,6 +3100,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3085,7 +3124,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3131,6 +3170,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3152,7 +3194,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3295,6 +3337,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3324,7 +3369,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ diff --git a/services/monitoring/dashboards/atlas-testing.json b/services/monitoring/dashboards/atlas-testing.json index ea5e0e09..e8e57cc4 100644 --- a/services/monitoring/dashboards/atlas-testing.json +++ b/services/monitoring/dashboards/atlas-testing.json @@ -453,6 +453,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -486,7 +489,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -533,6 +536,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -576,7 +582,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -623,6 +629,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -652,7 +661,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -699,6 +708,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -742,7 +754,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -788,6 +800,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -830,7 +845,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -1865,6 +1880,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -1905,7 +1923,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2405,6 +2423,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2426,7 +2447,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2472,6 +2493,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2493,7 +2517,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2539,6 +2563,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2560,7 +2587,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2606,6 +2633,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2627,7 +2657,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2923,6 +2953,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2951,7 +2984,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2997,6 +3030,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3018,7 +3054,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3064,6 +3100,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3085,7 +3124,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3131,6 +3170,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3152,7 +3194,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3295,6 +3337,9 @@ ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3324,7 +3369,7 @@ "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ diff --git a/services/monitoring/grafana-dashboard-jobs.yaml b/services/monitoring/grafana-dashboard-jobs.yaml index 03c211a4..7b587985 100644 --- a/services/monitoring/grafana-dashboard-jobs.yaml +++ b/services/monitoring/grafana-dashboard-jobs.yaml @@ -462,6 +462,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -495,7 +498,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -542,6 +545,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -585,7 +591,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -632,6 +638,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -661,7 +670,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -708,6 +717,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -751,7 +763,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -797,6 +809,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -839,7 +854,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -1874,6 +1889,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -1914,7 +1932,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2414,6 +2432,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2435,7 +2456,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2481,6 +2502,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2502,7 +2526,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2548,6 +2572,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2569,7 +2596,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2615,6 +2642,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2636,7 +2666,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2932,6 +2962,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2960,7 +2993,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3006,6 +3039,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3027,7 +3063,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3073,6 +3109,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3094,7 +3133,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3140,6 +3179,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3161,7 +3203,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3304,6 +3346,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3333,7 +3378,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ diff --git a/services/monitoring/grafana-dashboard-testing.yaml b/services/monitoring/grafana-dashboard-testing.yaml index 2af9aa11..fc1f187d 100644 --- a/services/monitoring/grafana-dashboard-testing.yaml +++ b/services/monitoring/grafana-dashboard-testing.yaml @@ -462,6 +462,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -495,7 +498,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -542,6 +545,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -585,7 +591,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -632,6 +638,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -661,7 +670,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -708,6 +717,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "percent", "min": 0, "max": 100, @@ -751,7 +763,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -797,6 +809,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -839,7 +854,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -1874,6 +1889,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -1914,7 +1932,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2414,6 +2432,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2435,7 +2456,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2481,6 +2502,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2502,7 +2526,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2548,6 +2572,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2569,7 +2596,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2615,6 +2642,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2636,7 +2666,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -2932,6 +2962,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -2960,7 +2993,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3006,6 +3039,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3027,7 +3063,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3073,6 +3109,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3094,7 +3133,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3140,6 +3179,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3161,7 +3203,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -3304,6 +3346,9 @@ data: ], "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "unit": "none", "min": 0, "max": null, @@ -3333,7 +3378,7 @@ data: "overrides": [] }, "options": { - "displayMode": "gradient", + "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [