fix(monitoring): fix inhibit_rules snake_case, suppress InfoInhibitor spam
The Prometheus operator uses snake_case (inhibit_rules) not camelCase (inhibitRules), causing alertmanager reconciliation to fail. Also route InfoInhibitor alerts to null to stop flooding the Matrix alerts room.
This commit is contained in:
@@ -141,6 +141,9 @@ alertmanager:
|
|||||||
- alertname = Watchdog
|
- alertname = Watchdog
|
||||||
receiver: matrix
|
receiver: matrix
|
||||||
repeat_interval: 12h
|
repeat_interval: 12h
|
||||||
|
- matchers:
|
||||||
|
- alertname = InfoInhibitor
|
||||||
|
receiver: "null"
|
||||||
- matchers:
|
- matchers:
|
||||||
- severity = critical
|
- severity = critical
|
||||||
receiver: matrix
|
receiver: matrix
|
||||||
@@ -148,11 +151,12 @@ alertmanager:
|
|||||||
- severity = warning
|
- severity = warning
|
||||||
receiver: matrix
|
receiver: matrix
|
||||||
receivers:
|
receivers:
|
||||||
|
- name: "null"
|
||||||
- name: matrix
|
- name: matrix
|
||||||
webhook_configs:
|
webhook_configs:
|
||||||
- url: "http://matrix-alertmanager-receiver.monitoring.svc.cluster.local:3000/alerts/alerts"
|
- url: "http://matrix-alertmanager-receiver.monitoring.svc.cluster.local:3000/alerts/alerts"
|
||||||
send_resolved: true
|
send_resolved: true
|
||||||
inhibitRules:
|
inhibit_rules:
|
||||||
# Critical alerts suppress warnings for the same alertname+namespace
|
# Critical alerts suppress warnings for the same alertname+namespace
|
||||||
- source_matchers:
|
- source_matchers:
|
||||||
- severity = critical
|
- severity = critical
|
||||||
|
|||||||
Reference in New Issue
Block a user