[prometheus-users] Re: Alertmanager configuration

2020-05-11 Thread Da Sm
Thanks for the template snip - Here's what I finally ended up going with - *alertmanager.yml* slack_configs: - api_url: channel: '#' color: '{{ template "SLACK_MSG_COLOR" . }}' send_resolved: true title: '{{ template "SLACK_MSG_TITLE" . }}' text: '{

Re: [prometheus-users] My alertmanger container ubale to start

2020-05-05 Thread Da Sm
Also, I'm not certain if it's okay to call out a receiver named slack_configs... Feels like that has potential pitfalls... -- 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, s

Re: [prometheus-users] My alertmanger container ubale to start

2020-05-05 Thread Da Sm
Try it this way... global: slack_api_url: 'https://xxx' route: group_by: ['alertname', 'app'] group_wait: 30s group_interval: 5m receiver: email_configs repeat_interval: 5m routes: - match: severity: critical continue: true receiver: s

Re: [prometheus-users] Alertmanager configuration

2020-05-05 Thread Da Sm
@Karthike Ezhilarasan Here's a basic template that I'm currently using - I forget which other thread I originally got it from - slack_configs: channel: '#XXX' # templating documentation at: # https:\\golang.org/pkg/text/template color: '{{ if eq .Status "firing" }}