Skip to content

Commit

Permalink
alertmanager: fix accidental cross-service silences (#7070)
Browse files Browse the repository at this point in the history
Also, fix incorrect match types.
  • Loading branch information
majewsky committed Sep 16, 2024
1 parent b0bc35b commit 672c0e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion global/prometheus-alertmanager-operated/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
type: application
description: Prometheus Alertmanager via operator.
name: prometheus-alertmanager-operated
version: 4.5.0
version: 4.5.1

dependencies:
- alias: prometheus-alertmanager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ spec:
- 'alertname'
- 'cluster'
- sourceMatch:
- matchType: "="
name: severity
value: 'critical'
- matchType: "="
name: context
value: '.+'
- matchType: "="
name: severity
value: 'critical'
- matchType: "!="
name: context
value: ''
targetMatch:
- matchType: "="
name: severity
value: 'warning'
- matchType: "="
- matchType: "!="
name: context
value: '.+'
value: ''
equal:
- 'region'
- 'context'
Expand All @@ -52,10 +52,16 @@ spec:
- matchType: "=~"
name: severity
value: 'critical|warning'
- matchType: "!="
name: context
value: ''
targetMatch:
- matchType: "="
name: severity
value: 'info'
- matchType: "!="
name: context
value: ''
equal:
- 'region'
- 'context'
Expand Down

0 comments on commit 672c0e8

Please sign in to comment.