henrygd / beszel

Lightweight server monitoring hub with historical data, docker stats, and alerts.
MIT License
1.26k stars 49 forks source link

Docker stats issue #194

Open n-bilalis opened 9 hours ago

n-bilalis commented 9 hours ago

In the latest version v0.5.0, there is an issue with the Docker stats.

The graph in both the CPU usage and in the Memory usage appears "jagged". In the following image you can see the graph before and after the update to v0.5.0.

image

The problem seems to be that stats come back as 0 at intervals, so the graph line drops. Especially for the Memory usage that can't be true:

image

If I choose 12 hours the line smooths out a bit, but still it doesn't make sense to have that kind of variability.

henrygd commented 2 hours ago

This is likely related to a bug in older versions of Docker.

What's your output of docker version?

Unless you're locked into an older version by your OS -- like Synology users -- I'd recommend updating to the latest version (27).

However, I did look into this a bit yesterday and should be able to add a workaround for old versions.