Plugins 〉Singlestat Math


Developer

Sandeep

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.


The Singlestat Math plugin has been deprecated and is no longer maintained.

Panel
community

Singlestat Math

  • Overview
  • Installation
  • Related content

Single Stat Math Panel

This panel is a modification of the native single stat panel to support math functions across series.

Usage

InfluxDB

To use the math feature, give the series an alias by name and use that name inside the math field as variables.

Image of using InfluxDB metric

In the math field you can use the alias names to perform math across series.

Image of using math field

Changelog

1.1.6

  • Merged PR to fix gauge color

1.1.5

  • Merged PR to autoupdate panels with previous threshold format.

1.1.4

  • Merged PR to add granular threshold options.

1.1.3

  • Merged PR to add circle shape as background option.

1.1.2

  • Merged PR to remove importing own flot plugins.

1.1.1

  • Changed function evaluation error handling to set results to zero

1.1.0

  • Fixed missing flot library crashing graph panel.
  • Updated dependencies.

1.0.0

  • Added math options if multiple queries are used.
  • Math field will use series alias name to evaluate function.

Installing Singlestat Math 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 Singlestat Math 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.