Plugins 〉MetaQueries

Data Source


  • Overview
  • Installation
  • Related content

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.


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
sudo service grafana-server restart

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


  • 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



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

Moving Average


Time Shift



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


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

For more information, visit the docs on plugin installation.