Alerting: Update alerting module + refactor (#111761)
* update alerting module * replace compat with ones from alerting * update type references Receiver and Integration to *Status * update route in provisioning test that is invalid after recent change * use right type for LINE ingtegration
This commit is contained in:
@@ -144,16 +144,17 @@ policies:
|
||||
- label_keys_not_$$escaped
|
||||
# <list> a list of prometheus-like matchers that an alert rule has to fulfill to match the node (allowed chars
|
||||
# [a-zA-Z_:])
|
||||
matchers:
|
||||
- alertname = Watchdog
|
||||
- service_id_X = serviceX
|
||||
- severity =~ "warning|critical"
|
||||
# <list> a list of grafana-like matchers that an alert rule has to fulfill to match the node
|
||||
object_matchers:
|
||||
- ["alertname", "=", "CPUUsage"]
|
||||
- ["service_id-X", "=", "serviceX"]
|
||||
- ["severity", "=~", "warning|critical"]
|
||||
group_wait: 30s
|
||||
group_interval: 5m
|
||||
repeat_interval: 4h
|
||||
routes: []
|
||||
routes:
|
||||
- matchers:
|
||||
- alertname = Watchdog
|
||||
- service_id_X = serviceX
|
||||
- severity =~ "warning|critical"
|
||||
# <list> a list of grafana-like matchers that an alert rule has to fulfill to match the node
|
||||
object_matchers:
|
||||
- [ "alertname", "=", "CPUUsage" ]
|
||||
- [ "service_id-X", "=", "serviceX" ]
|
||||
- [ "severity", "=~", "warning|critical" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user