https://prometheus.io/webtools/alerting/routing-tree-editor/
This will help when building routes
This message, including any attachments, may include private, privileged and confidential information and is intended only for the personal and confidential use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any review, use, dissemination, distribution, printing or copying of this message or its contents is strictly prohibited and may be unlawful. If you are not an intended recipient or have received this communication in error, please immediately notify the sender by telephone and/or a reply email and permanently delete the original message, including any attachments, without making a copy.--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a4f8998b-b0e3-4de6-b7e9-9454d4332ac7%40googlegroups.com.
It works now as Pradeep suggested but I need three receivers: slack, pagerduty and email.
# send any alerts with an 'email_to' label to that email address, as well as normal EMS processing- match_re:email_to: .*@.*group_by: [ 'alertname', 'email_to' ]receiver: email_router# also email interfacingcontinue: true- match_re:alertname: "(TooManyMessagesQueued|MessagesNotFlowing)"group_by: [ 'alertname', 'priority', 'timeperiod' ]routes:# priority='none' goes nowhere- match:priority: nonereceiver: devnull# priority='high' goes to the on-call pager- match:priority: highreceiver: pagercontinue: true# priority high and medium go via email- match_re:priority: (high|medium)receiver: interfacing-userscontinue: true# all alerts to Slack- match_re:priority: .*receiver: slack# end TooManyMessagesQueued
> To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ee9bfd7c-c545-44ae-a83c-b2576fb5cba1%40googlegroups.com.
The second "receiver" entry (line 11) should be aligned with the
preceding "match" entry. You miss a space character after "to:" and
"auth_password:" too.
On Fri, Oct 4, 2019 at 1:43 PM Gabriel Balan <bala...@gmail.com> wrote:
>
> Hi Christian,
> Didn't mean to rechristen you to Simon earlier. Busy day at the office.
>
> https://pastebin.com/btwYJcNu
>
> It still has a problem with line 4 even though line 5 is removed.
>
> --
> 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 promethe...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/cab6cfa3-c676-4263-b75a-bc480caaa3a5%40googlegroups.com.