Customize dashboard and panel link in email alert notifications

  • What Grafana version and what operating system are you using?

grafana:12.1.0 running as docker container

  • What are you trying to achieve?

Customize dashboard and panel link in email alert notifications, so that I can add query parameters to these links (otherwise esspecially panel links make no sense, because a panel is usually controlled by a variable, so the link needs to have the value of the variable as query param)

  • How are you trying to achieve it?

Trying to add DashboardUrl and PanelUrl as annotations with custom value, but the buttons in the email don’t use my custom values

  • What happened?

Nothing happens

  • What did you expect to happen?

The dashboard and panel buttons should use the values from the annotations DashboardUrl and PanelUrl.

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

No

  • Did you follow any online instructions? If so, what is the URL?

Yes, Create and link alert rules to panels | Grafana documentation, and I don’t understand why there are no mentionings of adding variable values to these links.

Hi @walnussbaer, you should use the Link dashboard and panel button (next to the Add custom annotation button) to link alerts to a dashboard and panel.

When configured, this option automatically generates the appropriate custom annotations.

Docs: Create and link alert rules to panels | Grafana documentation