Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#132929·grafana

Alerting: Templating in alert titles does not work

Author: shibumiCreated Sep 17, 2026Updated Sep 17, 2026
Labelstype/bugarea/alertingautomated-triage

What happened?

Hi,

We are setting up alerts in Grafana right now and would like to use template variables in Grafana alert titles.

What we want to achieve is:

Title: PodOOMKill - <SERVICE_NAME>

What we currently have:

Title: PodOOMKill

What we tried:

Title: PodOOMKill - {{ $labels.namespace }}

What we tried as well:

Title: PodOOMKill - {{ $$labels.namespace }}

What did you expect to happen?

I expect to be able to use templating in Grafana alert titles, such as:

        - uid: efyg06mfzdfr4f
          title: "PodOOMKilled - {{ $labels.namespace }}"
          condition: C
          data:
            ...

Did this work before?

I don't know. Google Search and AI tells me it should work.

How do we reproduce it?

  1. Create a new Grafana Alert
  2. Use Go templates in the Alert title.
  3. See that it does not work when the alert triggers and gets send to the destination.

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Grafana: v13.1.5 OS: Official Grafana Container Browser: Google chrome

Grafana platform?

Kubernetes

Datasource(s)?

Mimir

Source: grafana/grafana

View original on GitHubView discussion on GitHub