Google Cloud Platform: how to monitor memory usage of VM instances

前端 未结 5 676
挽巷
挽巷 2020-12-10 00:47

I have recently performed a migration to Google Cloud Platform, and I really like it.

However I can\'t find a way to monitor the memory usage of the VM intances. As

5条回答
  •  失恋的感觉
    2020-12-10 01:01

    Well you can use the /proc/meminfo virtual file system to get information on current memory usage. You can create a simple bash script that reads the memory usage information from /proc/meminfo. The script can be run periodically as a cron job service. The script can send an alert email if the memory usage exceeds a given threshold.

    See this link: https://pakjiddat.netlify.app/posts/monitoring-cpu-and-memory-usage-on-linux

提交回复
热议问题