/grafana-meta-queries

Grafana plugin for calculating time period metrics like week over week, month over month and year over year etc.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Meta Queries Plugin for Grafana:

Meta Queries plugin is built as a data source plugin and can be used in conjunction with other data source to show computed metrics like Moving Average, Time Shift.

Installation

Need to clone this repo into your grafana plugins directory (default /var/lib/grafana/plugins if your installing grafana with package). Restart grafana-server and the plugin should be automatically detected and used.

git clone git@github.com:GoshPosh/grafana-meta-queries.git
sudo service grafana-server restart

Create a new datasource with a name and select type as MetaQueries Screenshot

Usage

  • Set the Graph's data source to MetaQueries
  • Add query of your data source (add a few more)
  • Add query with MetaQueries as data source
  • Reference other columns as A or B depending on what is shown

Examples

Arithmetic

Lets you perform arithmetic operations on one or more existing queries. Screenshot Screenshot

Moving Average

Screenshot

Time Shift

Screenshot

Compatibility

Grafana Meta Queries plugin 0.0.1 and above are supported for Grafana: 4.x.x

Known Issues

  • Moving average of moving average is not supported
  • Moving average of time shift is not supported
  • Time shift of Moving average is not supported
  • Time shift of Time Shift is not supported

Status

Lot of features might still not be implemented. Your contributions are welcome.