https://socialcbd.net/monitoring-system-metrics-efficiently/