WilliamVenner / grafana-timepicker-buttons

📊 Datasource-configured buttons panel plugin which set the time range of your Grafana dashboard
https://grafana.com/grafana/plugins/williamvenner-timepickerbuttons-panel
Apache License 2.0
47 stars 11 forks source link

InfluxDB and Timepicker-buttons #10

Closed KOCIU22 closed 3 years ago

KOCIU22 commented 3 years ago

Does the plugin work with Influx databases? if so how to use it or configure it?

Best Regards Luke

WilliamVenner commented 3 years ago

Yes it should be.

Configuration would be very similar to how you would configure it with any other datasource.

WilliamVenner commented 3 years ago

I believe #7 confirms that InfluxDB works with the plugin, at least in version >=3.0.0.

yujia21 commented 3 years ago

Adding some info in case it could help others - it's not super straightforward to query the time column in influxDB with this plugin, but for Grafana 8, once you get your time series with your query as a table, you can use Transforms to add a binary operation that sums the time column with 0 which results in a column of timestamps in unix (which you can then reduce to get the first and last timestamp, for example).