oracle / oci-grafana-metrics

Grafana datasource plugin for OCI metrics
https://grafana.com/grafana/plugins/oci-metrics-datasource
Universal Permissive License v1.0
79 stars 40 forks source link

Variables Replaced by Fixed Values When Editing Visualizations in Grafana #309

Open Maros112358 opened 3 days ago

Maros112358 commented 3 days ago

Description

When editing and saving a visualization in Grafana that uses dashboard variables from the OCI metrics plugin, the variables are replaced with their fixed values, breaking dynamic updates.

How to replicate?

  1. Create a Grafana dashboard with query variables from the OCI metrics plugin (example below)

    image
  2. Use these variables in an OCI data source in a visualization (example below)

    image
  3. Save the dashboard

  4. Verify that changing variable values updates the visualization (works as expected).

  5. Edit the visualization. The variables are replaced by their current fixed values.

    Screenshot 2024-11-27 at 10 26 26
  6. Save the dashboard again.

  7. Changing variable values no longer updates the visualization.

What I expect to happen

Editing a visualization should preserve the variables in the data source configuration, similar to how other Grafana data sources (e.g., Prometheus, Loki) behave.

Workaround

Manually reinsert the variables into the data source during editing, though this is error-prone and adds unnecessary overhead.

mamorett commented 3 days ago

Hi, thanks for your report here. We will have a look into it.