Chrisvdberge
Chrisvdberge

Reputation: 1956

Grafana: set dashboard time range when choosing variable

Is it possible to somehow reset/override/define the time range based on choosing a variable in a dashboard?

I have a dashboard to show all kinds of data for events. The events are numbered and this is a variable in the dashboard so I can show the data for a particular event. However, events will have happened for let's say 2 hours on a specific date. So I find myself constantly resetting the date range and zooming in again on the charts when I change events. Is there a way to set this time when setting the variable?

Upvotes: 4

Views: 4351

Answers (1)

Billy
Billy

Reputation: 113

My new plugin may be of use to you. I had a similar issue which I decided to make this solution for.

Screenshot

The buttons will set the timepicker's time range based on data from a datasource.

Enjoy!

https://github.com/WilliamVenner/grafana-timepicker-buttons

Upvotes: 2

Related Questions