Comparison Panel

The Comparison panel is meant to display the difference of a current set of values and
the set of values right before, with the same time range.
When the current time range is for example from now-5m to now, the previous time range
(the one to compare with) should be now-10m to now-5m. To achieve this easily, use
the ${__range} variable for current and offset ${__range} for previous values as seen
in the table below.
Required query names and queries (queries are exemplary)
| Query name | query |
|---|---|
| total-filtered | increase(application_total{status="success"}[${__range}]) |
| total-right-filtered | increase(application_total{status="timeout"}[${__range}]) |
| previous-filtered | increase(application_total{status="success"}[${__range}] offset ${__range}) |
| previous-right-filtered | increase(application_total{status="timeout"}[${__range}] offset ${__range}) |
The query names are mandatory.
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more
Insights
- Adoption
Running on 2,851 active Grafana instances.
- Activity
Last updated 15 Jul 2021.
0 releases in the past year.
- Version
- 1.1.0
- Dependencies
- Grafana >=7.0.0
- Developer
- integrationmatters
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more