monitoring(testing): clarify category panel window
This commit is contained in:
parent
9789ff5338
commit
813d057c6d
@ -2431,7 +2431,7 @@ def build_overview():
|
|||||||
legend="{{category}}",
|
legend="{{category}}",
|
||||||
thresholds=test_success_thresholds,
|
thresholds=test_success_thresholds,
|
||||||
links=overview_link("atlas-testing"),
|
links=overview_link("atlas-testing"),
|
||||||
description="Pass rate by major 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 last 24 hours. Blue is clean; warmer colors show categories needing attention.",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
panels[-1]["options"]["legend"] = {"displayMode": "list", "placement": "bottom", "showLegend": False}
|
panels[-1]["options"]["legend"] = {"displayMode": "list", "placement": "bottom", "showLegend": False}
|
||||||
|
|||||||
@ -77,6 +77,8 @@ def test_overview_uses_readable_quality_power_and_gitops_panels():
|
|||||||
assert panels_by_title["Test Category Pass Rate"]["targets"][0]["legendFormat"] == "{{category}}"
|
assert panels_by_title["Test Category Pass Rate"]["targets"][0]["legendFormat"] == "{{category}}"
|
||||||
assert "${overview_suite:regex}" not in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
assert "${overview_suite:regex}" not in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
||||||
assert mod.PLATFORM_TEST_SUITE_CANONICAL_MATCHER in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
assert mod.PLATFORM_TEST_SUITE_CANONICAL_MATCHER in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
||||||
|
assert "platform_quality:test_case_pass_rate:percent_1h" in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
||||||
|
assert panels_by_title["Test Category Pass Rate"]["timeFrom"] == "24h"
|
||||||
assert f'category=~"{mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX}"' in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
assert f'category=~"{mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX}"' in panels_by_title["Test Category Pass Rate"]["targets"][0]["expr"]
|
||||||
assert "manual" not in mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX
|
assert "manual" not in mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX
|
||||||
assert "unit" not in mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX
|
assert "unit" not in mod.PLATFORM_TEST_OVERVIEW_CATEGORY_REGEX
|
||||||
|
|||||||
@ -2796,7 +2796,7 @@
|
|||||||
"id": 46,
|
"id": 46,
|
||||||
"type": "state-timeline",
|
"type": "state-timeline",
|
||||||
"title": "Test Category Pass Rate",
|
"title": "Test Category Pass Rate",
|
||||||
"description": "Pass rate by major 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 last 24 hours. Blue is clean; warmer colors show categories needing attention.",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
|
|||||||
@ -2805,7 +2805,7 @@ data:
|
|||||||
"id": 46,
|
"id": 46,
|
||||||
"type": "state-timeline",
|
"type": "state-timeline",
|
||||||
"title": "Test Category Pass Rate",
|
"title": "Test Category Pass Rate",
|
||||||
"description": "Pass rate by major 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 last 24 hours. Blue is clean; warmer colors show categories needing attention.",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user