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/62fb8327-9444-4f97-b757-ea82fab54a73o%40googlegroups.com.