From 42ce51baad3df66c6c680fe6d9de9e7dd27c8889 Mon Sep 17 00:00:00 2001 From: jenkins Date: Sat, 16 May 2026 18:07:21 -0300 Subject: [PATCH] monitoring: make current gate rollup use latest checks --- services/monitoring/vmalert-atlas-availability.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/monitoring/vmalert-atlas-availability.yaml b/services/monitoring/vmalert-atlas-availability.yaml index eb795801..27a04fb3 100644 --- a/services/monitoring/vmalert-atlas-availability.yaml +++ b/services/monitoring/vmalert-atlas-availability.yaml @@ -182,18 +182,18 @@ data: - record: platform_quality:check_status:present_1h 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]) + {__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",status!=""} or label_replace( - max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch="",check!="",status!=""}[1h]), + {__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch="",check!="",status!=""}, "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]), + {__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",result!="",status=""}, "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]), + {__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch="",check!="",result!="",status=""}, "status", "$1", "result", "(.*)" ), "branch", "unknown", "__name__", ".*" @@ -230,7 +230,7 @@ spec: labels: app: vmalert-atlas-availability annotations: - bstein.dev/rules-revision: "2026-05-16-platform-quality-1m" + bstein.dev/rules-revision: "2026-05-16-platform-quality-current-checks" spec: serviceAccountName: vmalert-atlas-availability affinity: