Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📊 Datasource-configured buttons panel plugin which set the time range of your Grafana dashboard

License

NotificationsYou must be signed in to change notification settings

WilliamVenner/grafana-timepicker-buttons

Repository files navigation

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 ButtonsPanel Screenshot Dropdown ListPanel Screenshot Horizontal Buttons


Compatibility

This plugin works with Grafana 7.0.0 and up.

For older versions, check out thereleases page.


Installation

sudo service grafana-server stopcd /var/lib/grafana/pluginssudo git clone https://github.com/WilliamVenner/grafana-timepicker-buttonssudo mv grafana-timepicker-buttons williamvenner-timepickerbuttons-panelsudo chown grafana:grafana williamvenner-timepickerbuttons-panel -Rsudo chmod 774 williamvenner-timepickerbuttons-panel -Rsudo 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 ButtonsPanel Options Dropdown List


Field Mapping

All dates and times should use UTC.

The data returned from the datasource must be formatted as aTable, not aTime 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:

ColumnDefault ValueDescription
Time From Fieldtime_fromRequired
A UNIX Timestamp (Number) or ISO 8601 formatted date
This will set the "From" part of the time range.
The value can include or exclude ms. Example: 1612413008000 or 1612413008
Time To Fieldtime_toOptional
A UNIX Timestamp (Number) or ISO 8601 formatted date
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 tonow.
Button Text Fieldbutton_textOptional
What the text inside the button will say.
If this is not supplied, it will default to a locale-formatted timestamp.
Primary FieldprimaryOptional
Field used to determine if the button will be marked with astar icon
Primary Value1Optional
A Regex pattern to perform on thePrimary Field. If matched the button will be marked with astar icon.

Example Screenshot



Credit
Logo made byDinosoftLabs onwww.flaticon.com

About

📊 Datasource-configured buttons panel plugin which set the time range of your Grafana dashboard

Topics

Resources

License

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp