-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gaps in Graphs for Time Ranges Beyond 1 Hour (12h, 24h, etc.) #419
Comments
That's very strange! The 12 hour chart uses The 1 hour chart does have some margin for error built in where it will only show a gap if the time between 1m records is longer than 90 seconds IIRC. Can you please check the
For every ten minute block, there should be a |
Based on the system_stats, it seems that 10-minute records are occasionally not being created. Here's an example: Between 18:50 UTC and 19:10 UTC, the 10-minute record for 18:50 and 19:10 are present, but the one for 19:00 is missing. This missing record is also reflected in the graph (note that the graph is displayed in local time, which is one hour ahead). Could this issue be related to drift in the 1-minute records? |
Yes, normally the Are you running the hub with Docker, and do you have a If you have more than one system being monitored, are you seeing the same behavior with all systems? Also, can you run Here's the what my personal instance looks like: |
This is my configuration in docker-compose:
And I only have one system agent, all together with the hub in my raspberry pi 4. Docker version is the following:
Could the drift happen because the lack of an RTC in my rpi or maybe its just not powerful enough? |
Pi 4 should easily be powerful enough, but you could try testing the hub on a different machine to see if the problem continues. RTC is an interesting theory. I'm not very knowledgeable on that, but I'd assume it should be fine as long as NTP works. I'd recommend upgrading Docker if possible. The oldest version I've tested is 24, because Synology container manager forces people to use that, and had to add a workaround to get it working. Docker 20 may have its own issues. |
After some search in the internet about time drift on raspberry pi I applied the force_turbo=1 fix suggested in the https://forums.raspberrypi.com/viewtopic.php?t=337797, the problem seems to be resolved. So far, there has been no time drift, and the gaps in the graphs have disappeared for the past six hours. I’ll continue monitoring to see if the issue reappears, but for now, this solution looks promising even it is not the best one since this will force the CPU to run at maximum speed, which will affect power consumption and temperature. |
Wow, nice job figuring that out! Unfortunate solution, but at least you know the problem. Maybe you could try auto-cpufreq and see if any configuration options fix the clock without needing to force turbo. Otherwise, this should only affect the hub, so moving the hub to a different system would be an option. |
I’ve noticed gaps in the graphs when viewing data over extended time ranges such as 12 hours, 24 hours, days, or weeks. However, when viewing data for shorter time periods (e.g., 1 hour), the graphs display correctly without any gaps.
Example Screenshots:
12h View with Gaps:
1h View without Gaps:
I checked the agent logs for the times corresponding to the gaps, and there is no indication of the agent being down or disconnected. The logs confirm that data was collected during those periods.
This issue seems specific to how the data is visualized for extended time ranges.
Is this a known issue with how data is aggregated or displayed for longer time ranges?
Could this be related to the database or data retention settings?
Are there any troubleshooting steps I should try to resolve this?
Thank you for looking into this!
The text was updated successfully, but these errors were encountered: