Skip to content

Alertmanager templating #5851

Aug 29, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @pschiffe,
Yes, you need to refer the template in your Alert Manager config.
My alertmanager.yaml file looks like this, note the last two lines:

route:
  receiver: slack
  group_interval: 5m
  group_wait: 60s
  repeat_interval: 24h
receivers:
- name: slack
  slack_configs:
  - api_url: "https://hooks.slack.com/services/xxxxxx"
    channel: "XXXXXXX"
    title: '{{ template "slack.title" . }}'
    text: '{{ template "slack.message" . }}'
    send_resolved: true
templates:
- slack.tmpl

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tagathi
Comment options

Answer selected by tagathi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants