Template variable with alerts' labels/values

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

  • What are you trying to achieve?
    I want to add a template variable to a Dashboard where users will be able to select from a list of dynamic values.

The values should come from the alerts’ labels with he same name as the template variable.

For example, the template variable app should be populated with all the values ever assigned to the alert label app across all alerts.

  • How are you trying to achieve it?
    Template variables and queries

  • What happened?
    I cannot find a way to query this information (list of all values attributed to an alert label across all alerts).

  • What did you expect to happen?
    Some way to query this data.

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

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

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