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?
Create a Grafana dashboard with query variables from the OCI metrics plugin (example below)
Use these variables in an OCI data source in a visualization (example below)
Save the dashboard
Verify that changing variable values updates the visualization (works as expected).
Edit the visualization. The variables are replaced by their current fixed values.
Save the dashboard again.
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.
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?
Create a Grafana dashboard with query variables from the OCI metrics plugin (example below)
Use these variables in an OCI data source in a visualization (example below)
Save the dashboard
Verify that changing variable values updates the visualization (works as expected).
Edit the visualization. The variables are replaced by their current fixed values.
Save the dashboard again.
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.