Alertmanager templating #5851
-
Hi,
Whenever an alert is firing, alertmanager reports the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @tagathi, were you able to solve this? I'm seeing the same issue with Mimir 2.12.0:
|
Beta Was this translation helpful? Give feedback.
-
@tagathi @pschiffe And are you using it under "fallbackConfig" ts=2025-08-01T13:34:09.395065371Z caller=dispatch.go:390 level=error component=MultiTenantAlertmanager user=anonymous component=dispatcher insight=true component=dispatcher msg="Notify for alerts failed" num_alerts=3 err="slack-prod-alerts-mimir/slack[0]: notify retry canceled due to unrecoverable error after 1 attempts: template: :1:12: executing "" at <{{template "slack.title" .}}>: template "slack.title" not defined" |
Beta Was this translation helpful? Give feedback.
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: