Description:
There is an issue with the ad-hoc filtering functionality in Grafana when used with the Compare Queries plugin. While variable-based filters work correctly across the dashboard, using the 'Select Custom Filter' feature in Grafana causes compare queries panels to fail. Notably, panels that do not utilize the Compare Queries plugin still function as expected with the same filter.
Additional Notes:
The issue appears to be isolated to the Compare Queries plugin when interacting with Grafana's ad-hoc filter system.
Variable filters remain unaffected and function as expected across all panels.
I assume this issue may be related to compatibility between the plugin and the ad-hoc filter system. Do you have any idea on this?
What did you expect to happen?
Expected Behavior:
Both variable-based filters and ad-hoc filters (via 'Select Custom Filter') should work seamlessly across all panels, including those using the Compare Queries plugin.
Did this work before?
-
How do we reproduce it?
Steps to Reproduce:
Use Grafana v11.3.0-pre with CompareQueries plugin version leoswing-comparequeries-datasource-2.0.2.
Set up a dashboard that includes multiple panels utilizing the Compare Queries plugin alongside panels that do not.
Apply a variable-based filter and observe that all panels, including compare queries, work as expected.
Switch to using the 'Select Custom Filter' feature in Grafana.
Notice that compare queries panels does not reflect the filtering, while other panels continue to work correctly.
What happened?
Hello @leoswing,
Description: There is an issue with the ad-hoc filtering functionality in Grafana when used with the Compare Queries plugin. While variable-based filters work correctly across the dashboard, using the 'Select Custom Filter' feature in Grafana causes compare queries panels to fail. Notably, panels that do not utilize the Compare Queries plugin still function as expected with the same filter.
Additional Notes: The issue appears to be isolated to the Compare Queries plugin when interacting with Grafana's ad-hoc filter system. Variable filters remain unaffected and function as expected across all panels.
I assume this issue may be related to compatibility between the plugin and the ad-hoc filter system. Do you have any idea on this?
What did you expect to happen?
Expected Behavior:
Did this work before?
-
How do we reproduce it?
Steps to Reproduce:
Environment (with versions)?
Environment: Grafana Version: Grafana v11.3.0-pre Compare Queries Plugin Version: leoswing-comparequeries-datasource-2.0.2
Grafana platform?
None