diff --git a/services/monitoring/vmalert-atlas-availability.yaml b/services/monitoring/vmalert-atlas-availability.yaml index 57dc4db7..3ab2159d 100644 --- a/services/monitoring/vmalert-atlas-availability.yaml +++ b/services/monitoring/vmalert-atlas-availability.yaml @@ -183,10 +183,21 @@ data: expr: | sum by (suite, branch, check, status) ( max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",status!=""}[1h]) + or label_replace( + max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch="",check!="",status!=""}[1h]), + "branch", "unknown", "__name__", ".*" + ) or label_replace( max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",result!="",status=""}[1h]), "status", "$1", "result", "(.*)" ) + or label_replace( + label_replace( + max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch="",check!="",result!="",status=""}[1h]), + "status", "$1", "result", "(.*)" + ), + "branch", "unknown", "__name__", ".*" + ) ) labels: rollup: hourly @@ -219,7 +230,7 @@ spec: labels: app: vmalert-atlas-availability annotations: - bstein.dev/rules-revision: "2026-05-16-platform-quality-check-status" + bstein.dev/rules-revision: "2026-05-16-platform-quality-check-branch" spec: serviceAccountName: vmalert-atlas-availability affinity: