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
8 stars 6 forks source link

Real Time mode not updating date (but time yes) #10

Closed vincent-gou closed 1 year ago

vincent-gou commented 2 years ago

Hi, I'm using latest release of plugin and it's successfully working on non real time dashboard. But on real time mode, day date is not updated automatically (but time shift yes ! :-) ).

For example below screenshot: Actual date is 12/07/22 and shift plugin with real time activated still display previous day date 11/07/22.

image

Shift plugin setup: image

To change current day date, i have to update manually date in panel edit mode and save dashboard afterwards: image

baur commented 2 years ago

try to update Grafana, in some versions was bug

vincent-gou commented 2 years ago

Currently using v9.0.1 Grafana release. May try to update to v9.0.2. Thanks

baur commented 2 years ago

on v9.0.1 fixed

vincent-gou commented 2 years ago

After v9.0.1 to v9.0.2 grafana update, manual day date and shift time range selection is working but not day date automatic update. This morning (13/07/22) dashboard was displaying previous day shift time range (12/07/22).

portbusy commented 1 year ago

Hi, any updates on this issue? I am still facing it on Grafana v9.3.2

isaozler commented 1 year ago

Hi @portbusy, I did look into it but wasn't able to provide a solution for it yet. I will try to fix it this weekend. Thanks for reminding me.

isaozler commented 1 year ago

With the new release v0.1.0 this should be fixed. The plugin is in review by at Grafana, but you can already try it out by downloading the latest release. Please reopen this issue if there are still problems using this feature.

smtpl-iiotian commented 4 months ago

I faced the same issue with grafana v9.4.15 where date is not updating on the next day automatically. I set a 24 hours time from 07:00:00 to 06:59:59 with a single group as below.

{ "static": { "shifts": [ { "group": "uuid_1", "group_uuid": "group_uuid_1", "uuid": "shift_uuid_1", "label": "Whole Shift Time", "startTime": "07:00:00", "endTime": "06:59:59", "order": 1 } ] } }

After login and opening the dashboard it took 24 hours time 17/07/2024 07:00:00 to 18/07/2024 06:59:59 along with date as expected. So, Real-time shift auto-select with dashboard refresh interval of 1 minute worked as expected first time after login and opening the dashboard.

To check if the date gets auto-updated the next day, I kept the dashboard opened. But today at 9am it was showing the same date as above and didn't got updated from 18/07/2024 07:00:00 to 19/07/2024 06:59:59. I logged out, logged in again and opened the dashboard and then the date got updated to current date.

Please guide, if I am missing something.