Thanks for the reply!
I've made the following changes:
global:
resolve_timeout: 15m
route:
group_by:
- instance
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: web.hook
routes:
- receiver: Ticket alerts
match_re:
alertname:
RabbitMQ-.*|QueueBuilding.*|NumberOfQueue.*|TooManyReadyMes.*
repeat_interval: 7000h
On Thursday, September 3, 2020 at 6:29:46 PM UTC+1 [email protected] wrote:
> It's not global, it's specific to a route:
> https://prometheus.io/docs/alerting/latest/configuration/#route
>
> There is a top level route, but this route can contain child routes (which
> can contain grandchild routes etc)
>
>
> On Thursday, 3 September 2020 16:19:58 UTC+1, Warren Francis wrote:
>>
>> Setting up two routes in the same file but i got this error " line 312:
>> field route already set in type config.plain\n line 324: field receivers
>> already set in type config.plain"
>>
>>
> route:
> ... set defaults here
> routes:
> - ... child route1 here
> - ... child route2 here
>
> The receiver and settings of the parent route are only used if none of the
> child routes match.
>
> There is an interactive tool that helps you visualize and debug your
> routing tree:
> https://prometheus.io/webtools/alerting/routing-tree-editor/
>
>
--
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/0b4d500c-04a5-4506-bcbb-fbe21f4cc3b0n%40googlegroups.com.