monitoring: keep quality check status without branch labels

This commit is contained in:
jenkins 2026-05-16 17:49:37 -03:00
parent 7dc03eefce
commit 65298d7357

View File

@ -183,10 +183,21 @@ data:
expr: | expr: |
sum by (suite, branch, check, status) ( sum by (suite, branch, check, status) (
max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",status!=""}[1h]) 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( or label_replace(
max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",result!="",status=""}[1h]), max_over_time({__name__=~".*_quality_gate_checks_total",exported_job="platform-quality-ci",suite!="",branch!="",check!="",result!="",status=""}[1h]),
"status", "$1", "result", "(.*)" "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: labels:
rollup: hourly rollup: hourly
@ -219,7 +230,7 @@ spec:
labels: labels:
app: vmalert-atlas-availability app: vmalert-atlas-availability
annotations: annotations:
bstein.dev/rules-revision: "2026-05-16-platform-quality-check-status" bstein.dev/rules-revision: "2026-05-16-platform-quality-check-branch"
spec: spec:
serviceAccountName: vmalert-atlas-availability serviceAccountName: vmalert-atlas-availability
affinity: affinity: