Add CPU and RAM usage to Metrics (#6968)

* Add CPU usage to Metrics

* Add RAM usage and rename to system-stats

* Shellcheck

* Remove SC exception

* Address review comments
This commit is contained in:
Sagar Dhawan
2019-11-14 20:36:34 -08:00
committed by GitHub
parent 006c39380a
commit 3ce6248f8c
3 changed files with 190 additions and 0 deletions

View File

@ -139,6 +139,8 @@ cat >> ~/solana/on-reboot <<EOF
echo \$! > net-stats.pid
scripts/iftop.sh > iftop.log 2>&1 &
echo \$! > iftop.pid
scripts/system-stats.sh > system-stats.log 2>&1 &
echo \$! > system-stats.pid
if ${GPU_CUDA_OK} && [[ -e /dev/nvidia0 ]]; then
echo Selecting solana-validator-cuda