Plugins 〉Comparison Panel


Developer

Integration Matters

Sign up to receive occasional product news and updates:


Grafana Cloud
Grafana Cloud
  • Grafana, of course
  • 10k series Prometheus metrics
  • 50 GB logs
  • 50 GB traces
  • 2,232 app o11y host hours
  • ...and more
Create free account

No credit card needed, ever.


Panel
community

Comparison Panel

  • Overview
  • Installation
  • Change log
  • Related content

Comparison Panel

img.png

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 namequery
total-filteredincrease(application_total{status="success"}[${__range}])
total-right-filteredincrease(application_total{status="timeout"}[${__range}])
previous-filteredincrease(application_total{status="success"}[${__range}] offset ${__range})
previous-right-filteredincrease(application_total{status="timeout"}[${__range}] offset ${__range})

The query names are mandatory.

Installing Comparison Panel on Grafana Cloud:

For more information, visit the docs on plugin installation.

Installing on a local Grafana:

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

1. Install the Panel

Use the grafana-cli tool to install Comparison Panel from the commandline:

grafana-cli plugins install 

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

2. Add the Panel to a Dashboard

Installed panels are available immediately in the Dashboards section in your Grafana main menu, and can be added like any other core panel in Grafana.

To see a list of installed panels, click the Plugins item in the main menu. Both core panels and installed panels will appear.

Changelog

1.0.0 (Unreleased)

Initial release.