isaozler / grafana-shift-selector

The shift selector allows you to adjust the time range of your grafana dashboard to one specific shift or a range of shifts.
Apache License 2.0
6 stars 6 forks source link

Feature request: Full day selection (other hours) #27

Open dorinpirvu opened 7 months ago

dorinpirvu commented 7 months ago

Hello,

I would like to request the possibility to create a shift that takes 24hrs, but other than 00:00 to 00:00. For example using: "startTime": "06:30:00", "endTime": "06:30:00", the plugin could detect that the time period contains passing from one day to another. Selecting 00:00 as startTime and endTime should also select one full day. This can be achieved using a workaround by selecting 00:00 for startTime and 23:59:59 as endTime. This workaround does not work for other times, for example selecting 06:30 as startTime and 06:29 as endTime results in interpreting them the other way around (same day, from 06:29 to 06:30). image image

G3CK0za commented 4 months ago

This would indeed be very useful. Most of the time we review 24 hours from start of day shift to end of night shift, so we end up using the custom time range anyway. It would be great if we had an option that could combine the shifts into a full working day selector.

This should of course only work if auto shift select is disabled. When enabled, auto shift select can still use the shifts.

I guess this can be achieved when mapping your own shifts - but it would be nice if you could combine data source shifts to achieve the working day option.