From aa750f18b06531e006237cc8f20717f26618c057 Mon Sep 17 00:00:00 2001 From: jenkins Date: Mon, 18 May 2026 11:41:03 -0300 Subject: [PATCH] monitoring(overview): simplify test category lanes --- scripts/dashboards_render_atlas.py | 9 +++++++-- services/monitoring/dashboards/atlas-overview.json | 7 ++++--- services/monitoring/grafana-dashboard-overview.yaml | 7 ++++--- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index e9bffdeb..39e3d8f0 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -578,6 +578,10 @@ PLATFORM_TEST_CATEGORY_REGEX = ( "api|chaos|compatibility|component|contract|e2e|integration|manual|" "performance|regression|reliability|security|smoke|system|ui|unit" ) +PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX = ( + "api|chaos|compatibility|component|contract|e2e|integration|" + "performance|regression|reliability|security|smoke|system|ui" +) PLATFORM_TEST_SUPPORT_CATEGORY_REGEX = "fixtures|golden|helpers" PLATFORM_TEST_SUCCESS_EVENTS_30D = ( f'(sum(increase(platform_quality_gate_runs_total{{suite=~"{PLATFORM_TEST_SUITE_MATCHER}",status=~"{PLATFORM_TEST_SUCCESS_STATUS}",{PLATFORM_TEST_EXPORT_FILTER}}}[30d])) or on() vector(0))' @@ -2071,7 +2075,7 @@ def build_overview(): overview_category_pass_rate = ( 'avg by (category) (platform_quality:test_case_pass_rate:percent_1h{' f'suite=~"{PLATFORM_TEST_SUITE_CANONICAL_MATCHER}",branch!="",branch=~"main|master|origin/main|origin/master",' - f'test!="",test!="__no_test_cases__",category=~"{PLATFORM_TEST_CATEGORY_REGEX}"' + f'test!="",test!="__no_test_cases__",category=~"{PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX}"' "})" ) for panel_id, title, draw_expr, runtime_expr, y_pos in [ @@ -2414,7 +2418,7 @@ def build_overview(): legend="{{category}}", thresholds=test_success_thresholds, links=overview_link("atlas-testing"), - description="Pass rate by test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", + description="Pass rate by major test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", ) ) panels[-1]["options"]["legend"] = {"displayMode": "list", "placement": "bottom", "showLegend": False} @@ -2422,6 +2426,7 @@ def build_overview(): panels[-1]["options"]["showValue"] = "auto" panels[-1]["options"]["tooltip"] = {"mode": "multi", "sort": "none"} panels[-1]["options"]["rowHeight"] = 0.9 + panels[-1]["timeFrom"] = "24h" for panel_id, title, metric, x_pos, description in [ ( 142, diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index b781cbc1..afeda905 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -2796,7 +2796,7 @@ "id": 46, "type": "state-timeline", "title": "Test Category Pass Rate", - "description": "Pass rate by test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", + "description": "Pass rate by major test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", "datasource": { "type": "prometheus", "uid": "atlas-vm" @@ -2809,7 +2809,7 @@ }, "targets": [ { - "expr": "avg by (category) (platform_quality:test_case_pass_rate:percent_1h{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan_iac|typhon|bstein_home|data_prepper\",branch!=\"\",branch=~\"main|master|origin/main|origin/master\",test!=\"\",test!=\"__no_test_cases__\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|manual|performance|regression|reliability|security|smoke|system|ui|unit\"})", + "expr": "avg by (category) (platform_quality:test_case_pass_rate:percent_1h{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan_iac|typhon|bstein_home|data_prepper\",branch!=\"\",branch=~\"main|master|origin/main|origin/master\",test!=\"\",test!=\"__no_test_cases__\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|performance|regression|reliability|security|smoke|system|ui\"})", "refId": "A", "legendFormat": "{{category}}" } @@ -2875,7 +2875,8 @@ "url": "/d/atlas-testing", "targetBlank": true } - ] + ], + "timeFrom": "24h" }, { "id": 142, diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index 38a147fa..4e32d3c0 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -2805,7 +2805,7 @@ data: "id": 46, "type": "state-timeline", "title": "Test Category Pass Rate", - "description": "Pass rate by test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", + "description": "Pass rate by major test category across all suites over the selected time range. Blue is clean; warmer colors show categories needing attention.", "datasource": { "type": "prometheus", "uid": "atlas-vm" @@ -2818,7 +2818,7 @@ data: }, "targets": [ { - "expr": "avg by (category) (platform_quality:test_case_pass_rate:percent_1h{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan_iac|typhon|bstein_home|data_prepper\",branch!=\"\",branch=~\"main|master|origin/main|origin/master\",test!=\"\",test!=\"__no_test_cases__\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|manual|performance|regression|reliability|security|smoke|system|ui|unit\"})", + "expr": "avg by (category) (platform_quality:test_case_pass_rate:percent_1h{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan_iac|typhon|bstein_home|data_prepper\",branch!=\"\",branch=~\"main|master|origin/main|origin/master\",test!=\"\",test!=\"__no_test_cases__\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|performance|regression|reliability|security|smoke|system|ui\"})", "refId": "A", "legendFormat": "{{category}}" } @@ -2884,7 +2884,8 @@ data: "url": "/d/atlas-testing", "targetBlank": true } - ] + ], + "timeFrom": "24h" }, { "id": 142,