Code Monkey home page Code Monkey logo

grafana-timepicker-buttons's Introduction

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 Vertical Buttons Panel Screenshot Dropdown List Panel Screenshot Horizontal Buttons


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

Display Style Configuration

The timepicker can be configured to display buttons (vertically or horizontally), or as a dropdown list.


Panel Options Buttons Panel Options Dropdown List


Field Mapping

All dates and times should use UTC.

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

The panel can be configured to map fields to the button properties:


Panel Options


The data fields returned from the datasource should be mapped with the following panel configuration settings:

Column Default Value Description
Time From Field time_from Required
A UNIX Timestamp (Number)
This will set the "From" part of the time range.
The value can include or exclude ms. Example: 1612413008000 or 1612413008
Time To Field time_to Optional
A UNIX Timestamp (Number)
This will set the "To" part of the time range.
The value can include or exclude ms. Example: 1612413008000 or 1612413008
If this is not supplied, it will default to now.
Button Text Field button_text Optional
What the text inside the button will say.
If this is not supplied, it will default to a locale-formatted timestamp.
Primary Field primary Optional
Field used to determine if the button will be highlighted (blue/"pop out" depending on your theme)
Primary Value 1 Optional
A Regex pattern to perform on the Primary Field. If matched the button will be highlighted.

Example Screenshot



Credit
Logo made by DinosoftLabs on www.flaticon.com

grafana-timepicker-buttons's People

Contributors

williamvenner avatar jburgess avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.