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: '{
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
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
@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" }}
4 matches
Mail list logo