I need to have different repeat_interval for every alert rules,
for example for alert rule1 I need it execute every 5 minutes and for aler
rule 2 I need it execute once a day,
I tried to use "for" in my alert rules file:
rules:
- alert: rule1
expr: <expression1>
for: 5m
- alert: rule2
expr: <expression2>
for: 1d # I also tries 1440m
but seems it's not working
here is my alertmanager config file:
route:
group_by: ['alertname']
group_wait: 30s
group_interval: 1h
repeat_interval: 1h
is it possible to have different group_interval and repeat_interval for
different alert rules? and if yes, how can I do that?
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/ed21cf23-5b40-44d6-823f-54625a2f8414n%40googlegroups.com.