Skip to content

Annotations: Annotations do not refresh upon template variable change #88350

@laundmo

Description

@laundmo

What happened?

When changing a variable used in the annotations query, nothing happens. The same annotations from before the change are still visible.

2024-05-27.17-17-16.mp4

What did you expect to happen?

When a variable used in an annotations query is changed, the annotations query should be re-run and the visible annotations updated immediately. It should not be necessary to disable and enable annotations, refresh the dashboard, or reload the page, to see changes to displayed annotations.

Did this work before?

Tested working: Grafana 8.5.2

How do we reproduce it?

  1. Create a variable
  2. Create an Annotation query which filters annotations by this variable's values.
  3. Save the dashboard with default variables
  4. Load the dashboard and observe annotations being visible.
  5. Change the variable and observe the annotations not changing.

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 11.0.0 and 10.3.3
OS: Windows 10
Browser: Firefox

Grafana platform?

Docker

Datasource(s)?

MySQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🗂️ Needs Triage / Escalation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions