Memory and swap were rounded to two decimal GB places before being sent
to the hub, which is inaccurate on low memory systems.
- agent: add MemBytes [total, used, buff/cache, zfs arc] and SwapBytes
[total, used]
- hub: migrate GB fields from older agents to the byte fields
- records: average byte fields, converting GB values from older records
- site: chart memory and swap from bytes, with fallback for older
records
Deprecated GB fields are still populated in agent payloads and stored
records for older hubs and third-party integrations.
Drop the cpu prefix from the cgroup path vars now that memory
accounting uses them too, and extract cgroupV2Dir() for the v2 mount
lookup previously repeated in CPU, memory and the root cgroup check.