NGAlert: Link to dashboard/panel with variables

Hi everyone!

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

  • What are you trying to achieve?
    I want to see in my alerts notifications links to dashboards and panels with corresponding variables.
    Something like:
    http://host/d/ID/name?orgId=1&var-cluster=VAR1&var-namespace=VAR2

Is it possible?

  • How are you trying to achieve it?
    I don’t know

  • Did you follow any online instructions? If so, what is the URL?
    I didn’t find any

Also I want to use timestamps (from & to) in url

Not sure about passing times but for variables I got it working by adding a custom label to the alert rule named something like “Investigation URL” with a value of:

https://grafana-prod.mydomain.com/d/oct6f_I7k/log-parsing-errors-by-device-type?orgId=1&var-my_device_type={{ $labels.device_type }}

That is a good point. Thank you!