At least for:
libvirt_domain_memory_stats_unused_bytes
libvirt_domain_memory_stats_used_percent
I got wrong values. For 1st it is 3,66GB and 2nd is 7,29%, but should be total-used=1,6Gi and 2,2/3,8*100=58%.
System output:
free -h
total used free shared buff/cache available
Mem: 3.8Gi 2.2Gi 197Mi 3.0Mi 1.4Gi 1.3Gi
Swap: 0B 0B 0B
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
At least for:
libvirt_domain_memory_stats_unused_bytes
libvirt_domain_memory_stats_used_percent
I got wrong values. For 1st it is 3,66GB and 2nd is 7,29%, but should be total-used=1,6Gi and 2,2/3,8*100=58%.
System output:
free -h
Mem: 3.8Gi 2.2Gi 197Mi 3.0Mi 1.4Gi 1.3Gi
Swap: 0B 0B 0B
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"