---
title: "Comparison Panel plugin for Grafana"
description: "Comparison Panel plugin for Grafana by integrationmatters. Available in Grafana Cloud and self-managed Grafana. See install steps and the changelog."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/integrationmatters-comparison-panel/

# Comparison Panel

- Developer: integrationmatters
- Version: 1.1.0
- [Installation](https://grafana.com/grafana/plugins/integrationmatters-comparison-panel/installation.md)
- [Change log](https://grafana.com/grafana/plugins/integrationmatters-comparison-panel/changelog.md)

![Comparison overview](https://grafana.com/api/plugins/integrationmatters-comparison-panel/versions/1.1.0/images/assets/images/comparison-template.png)

![img.png](https://github.com/IntegrationMatters/integrationmatters-comparison-panel/blob/master/comparison-template.png?raw=true)

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.**
