-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
prometheus-community/helm-charts#5873
Prevent vector from containing metrics with the same labelset after applying alert labels in InfoInhibitor alert
Problem:
The InfoInhibitor alert was failing to evaluate with the following error in Prometheus:
expr:[ALERTS{severity="info"} == 1 unless on (namespace) ALERTS{alertname!="InfoInhibitor",alertstate="firing",severity=~"warning|critical"} == 1
Example
- alert: InfoInhibitor 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
sipr-invivo, sebastiangaiser and AllexVeldman