Thanks,  this did it

[email protected] schrieb am Dienstag, 21. Juli 2020 um 10:49:21 UTC+2:

> There is a tool you can use to debug your alert routing tree here:
> https://prometheus.io/webtools/alerting/routing-tree-editor/
>
> The parent receiver is only called if none of the child routes match.  
> "Continue" only passes onto the the next route at the same level.  See 
> https://prometheus.io/docs/alerting/latest/configuration/#route
>
> Hence you need to move your routes to the same level.  Side note: you 
> don't need any match_re on the tech-admins, since it matches all alerts.
>
> Try something like this:
>
> # The root route on which each incoming alert enters.
> route:
>
>   # A default receiver (not used)
>   receiver: tech-admins
>
>   routes:
>   # All  alerts
>   # are dispatched to the technical admins
>   - receiver: 'tech-admins'
>     continue: true
>     group_wait: 10s
>  
>   # All shop alerts
>   # are dispatched to the shop team.
>   - receiver: 'shop-admins'
>     group_by: [product]
>     continue: true
>     group_wait: 10s
>     match_re:
>       product: 'Shop.*'
>     
>   # Alerts for individual shops are send to the shop admins     
>   - receiver: 'ownerTest' 
>     match:
>       product: 'ShopTest'
>
> The top-level receiver will never be used, since at least one child always 
> matches.  You could replace it with a null receiver (i.e. a receiver with 
> no targets) if you prefer.  However it's nice to have a safety net in case 
> something breaks in the child rules.
>

-- 
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/d5d3449e-4b88-4c0c-b857-18ef1e77fb8en%40googlegroups.com.

Reply via email to