-
Notifications
You must be signed in to change notification settings - Fork 1
FAQ
- Migration-Guide
- FAQ
This guide helps you migrate dashboards from the legacy RefId workflow to the recommended Target Datasource workflow.
- You are using Grafana 13+.
- Your existing CompareQueries rows still use
Reference Query refId. - You want better long-term compatibility and easier maintenance.
Legacy RefId workflow:
- CompareQueries references another query in the same
-- Mixed --panel byrefId. - Existing Grafana 11/12 dashboards can still work this way.
Recommended Target Datasource workflow:
- Configure the target datasource directly inside CompareQueries.
- Build the target query inline in CompareQueries Query Editor.
- Required for all new dashboards, especially Grafana 13+.
- Open the dashboard panel that contains the legacy CompareQueries query.
- Edit the CompareQueries row where
Reference Query refIdis set. - Click Migrate to Target Datasource.
- Select the original target datasource.
- Rebuild the target query inline in CompareQueries.
- Keep your existing Time-shift rows and alias settings.
- Save the panel and dashboard.
- Verify chart output and legends.
- CompareQueries query
refId - Time-shift rows (
Amount, aliases) - Delimiter settings
-
Process TimeShiftoption
If results are not as expected:
- Open Dashboard settings.
- Go to Versions.
- Restore a previous version.
- Panel datasource is
-- Mixed --. - CompareQueries row uses
Target Datasource(not legacy refId mode). - Base series and shifted series are both present.
- Legend aliases are correct.
- Alert rules (if any) still evaluate as expected.
———
No. CompareQueries does not store data. It executes queries against your selected target datasource (Prometheus, Loki, Elasticsearch, SQL, etc.).
CompareQueries supports Grafana 11, 12, and 13+.
Yes, for existing Grafana 11/12 dashboards. For Grafana 13+ and all new dashboards, use the Target Datasource workflow.
In dashboards, CompareQueries is typically used as a query row inside a panel whose datasource is set to -- Mixed --.
This lets you combine CompareQueries with native datasource queries in one panel.
Yes. Alerting is supported through backend query execution.
- Keep datasource auth mode as
No Authenticationfirst. - If backend/auth errors occur, switch to
Basic authentication. - Configure a Grafana Service Account token (Viewer or above).
- Set Grafana URL only if auto-detection is incorrect.
Enable Process TimeShift to align shifted series timestamps with the current window when needed.
Yes. Add multiple Time-shift rows (for example 1d, 1w, 30m) in one CompareQueries query.
Use the GitHub repository issues page: https://github.com/leoswing/comparequeries-datasource-rc/issues