Skip to content

alert list does not allow variable use in datasource selection #79046

@j-wytt

Description

@j-wytt

What happened?

When entering a datasource on an alertlist visualization for a dashboard that can utilize mulitple datasources, a configured variable is not accepted. Entering a specific datasource functions as expected.

What did you expect to happen?

known variable configuration would allow datasource to be dynamically selected from a datasource pull-down configured on the dashboard.

Did this work before?

unknown. first attempt

How do we reproduce it?

  1. Create prometheus datasource(s)
  2. Create a dashboard-specific variable to select from the available prometheus datasources
  3. Create an alertlist visualization
  4. Attempt to enter the ${datasource} variable created on the dashboard within the datasource field

Is the bug inside a dashboard panel?

yes

Environment (with versions)?

Grafana:10.1.5
OS: win11 (enduser)
Browser: firefox

Grafana platform?

A package manager (APT, YUM, BREW, etc.)

Datasource(s)?

prometheus, but doesn't appear to be datasource-specific

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions