Timepicker Buttons Panel

Panel

Datasource-configured buttons panel plugin which set the time range of your Grafana dashboard
  • Panel
    Panel
  • SQL Queries
    SQL Queries

Timepicker Buttons Panel for Grafana

license

A Grafana panel which allows you to create a list of buttons which set specific times (retrieved from a datasource) on the dashboard's timepicker when clicked.

Panel Screenshot


Compatibility

This plugin works with Grafana 7.0.0 and up.

For older versions, check out the releases page.


Installation

sudo service grafana-server stop
cd /var/lib/grafana/plugins
sudo git clone https://github.com/WilliamVenner/grafana-timepicker-buttons
sudo mv grafana-timepicker-buttons williamvenner-timepickerbuttons-panel
sudo chown grafana:grafana williamvenner-timepickerbuttons-panel -R
sudo chmod 774 williamvenner-timepickerbuttons-panel -R
sudo service grafana-server start

Usage

All dates and times should use UTC.

The data returned from the datasource must be formatted as a Table, not a Time Series.

The data returned from the datasource must have the following columns:

ColumnDescription
time_fromRequired A UNIX Timestamp (Number) This will set the "From" part of the time range.
time_toOptional A UNIX Timestamp (Number) This will set the "To" part of the time range. If this is not supplied, it will default to now.
button_textOptional What the text inside the button will say. If this is not supplied, it will default to a locale-formatted timestamp.
primaryOptional 1 (Number) will make the button blue/"pop out" (depending on your theme)

Example Screenshot


Credit

Logo made by DinosoftLabs on www.flaticon.com

Sign up Now

Version