Docker-Raspberry-PI-Monitoring
Docker-Raspberry-PI-Monitoring copied to clipboard
SWAP Used is not available
All other metrics are working, but SWAP Used always shows N/A
Any idea what i can do?
Ubuntu 22.04
P.S. on my raspberry pi 4 it works without problem
it is deletion by zero...
Fix:
change
((node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes) / (node_memory_SwapTotal_bytes)) * 100
to
((node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes) / (node_memory_SwapTotal_bytes + 1)) * 100