Skip to content

Commit 1660d5f

Browse files
updated to use group
1 parent 3d79948 commit 1660d5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jsonnet/kube-prometheus/components/mixin/alerts/general.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
This alert should be routed to a null receiver and configured to inhibit alerts with severity="info".
4747
|||,
4848
},
49-
expr: 'count by (namespace) (ALERTS{severity = "info"} == 1) > 0 unless on (namespace) count by (namespace) (ALERTS{alertname != "InfoInhibitor", alertstate = "firing", severity =~ "warning|critical"} == 1) > 0',
49+
expr: 'group by (namespace) (ALERTS{severity = "info"} == 1) unless on (namespace) group by (namespace) (ALERTS{alertname != "InfoInhibitor", alertstate = "firing", severity =~ "warning|critical"} == 1)',
5050
labels: {
5151
severity: 'none',
5252
},

manifests/kubePrometheus-prometheusRule.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
This alert should be routed to a null receiver and configured to inhibit alerts with severity="info".
4747
runbook_url: https://runbooks.prometheus-operator.dev/runbooks/general/infoinhibitor
4848
summary: Info-level alert inhibition.
49-
expr: count by (namespace) (ALERTS{severity = "info"} == 1) > 0 unless on (namespace) count by (namespace) (ALERTS{alertname != "InfoInhibitor", alertstate = "firing", severity =~ "warning|critical"} == 1) > 0
49+
expr: group by (namespace) (ALERTS{severity = "info"} == 1) unless on (namespace) group by (namespace) (ALERTS{alertname != "InfoInhibitor", alertstate = "firing", severity =~ "warning|critical"} == 1)
5050
labels:
5151
severity: none
5252
- name: node-network

0 commit comments

Comments
 (0)