Repository navigation
Host metrics on the host card (load, disk, network, uptime) #5299
Replies: 6 comments 4 replies
|
Can you add screenshot? I'll do a closer review tomorrow. |
|
I responded to the PR. Here some of the answer to your question.
|
|
Haven't heard back. Going to move this to discussion. |
|
This is now merged. |
|
Thanks for adding host metrics! Are there plans to show total host CPU, RAM and swap usage separately from container totals? For example, a backup running outside Docker can use most of the memory while containers look fine. One more suggestion: could host monitoring also support webhook alerts for low disk space and unreachable agents? |



Uh oh!
There was an error while loading. Please reload this page.
Hi! First off, thanks for Dozzle — it's excellent. I forked it to add host-level metrics that complement the per-container CPU/memory/network you already show, and I'd love to contribute it upstream if you're open to it.
What it adds
The host card currently shows CPU and Memory. I added four more facts for the host:
Rendered as tiles matching the existing CPU/Memory cards. (I'll attach a screenshot in a follow-up comment.)
How it works
container.Host(memUsed,load1/5/15,uptime,diskTotal/diskFree,netRxTotal/netTxTotal), populated for the local host by reading/proc/loadavg,/proc/uptime,/proc/meminfo,/proc/net/dev, plusstatfsfor the root filesystem (reusing the existingstatfshelper). The host is already serialized to the UI, so the fields flow through automatically.HostCard.vue.Important caveat
To report the host's values (not the container's), the Dozzle container needs the host
/procand root mounted, e.g.:Without those mounts it falls back to
/proc(container values). So this would likely need to be opt-in and documented.Open questions
Happy to adjust the approach based on your preference. Thanks!
All reactions