Multi channel alert in alertmanager

588 views
Skip to first unread message

Sushant Borse

unread,
Mar 1, 2018, 1:44:13 PM3/1/18
to prometheus...@googlegroups.com
Hi,

I need to send my alert to multiple slack channels after a particular time interval.
Below is my configuration, which is not working. Can somebody help me ?
route:
routes:
- match:
receiver: slack_channel_gateway
group_by: ['alertname', 'cluster', 'service']
group_wait: 10s
group_interval: 5m
repeat_interval: 15m
- match:
receiver: slack_channel_gateway_personal
group_by: ['alertname', 'cluster', 'service']
group_wait: 1m
group_interval: 5m
repeat_interval: 15m
receivers:
- name: slack_channel_gateway
slack_configs:
- send_resolved: true
api_url: "http://apiURL1"
channel: "alerts-prod"
- name: slack_channel_gateway_personal
slack_configs:
- send_resolved: true
api_url: "http://apiURL2"
channel: "alerts-stage"

Thanks,
Sushant

Brian Brazil

unread,
Mar 1, 2018, 1:47:37 PM3/1/18
to Sushant Borse, Prometheus Developers

Brian
 
Thanks,
Sushant

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAAjpwBdJsKa6nC0WvSq0vBUnW_0it%3DDgjjiL%2BL2AxOidJjVnnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

Sushant Borse

unread,
Mar 1, 2018, 2:25:15 PM3/1/18
to Brian Brazil, Prometheus Developers
Hi,

I was trying from that document but it did not work. This is the configuration I tried and did not work. Can you please tell what is wrong?

global:
resolve_timeout: 5m

templates:
- /etc/alertmanager/template/*.tmpl

route:
routes:
- match:
continue: true

receiver: slack_channel_gateway
group_by: ['alertname', 'cluster', 'service']
group_wait: 10s
group_interval: 5m
repeat_interval: 15m
- match:
      continue: true

receiver: slack_channel_gateway_personal
group_by: ['alertname', 'cluster', 'service']
group_wait: 1m
group_interval: 5m
repeat_interval: 15m

receivers:
- name: slack_channel_gateway
slack_configs:
- send_resolved: true
      api_url: "url1"
channel: "alerts2"

- name: slack_channel_gateway_personal
slack_configs:
- send_resolved: true
      api_url: "url2"
channel: "alerts"


Thanks,
Sushant

Thanks,
Sushant
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.



--

Reply all
Reply to author
Forward
0 new messages