resource-utilization

Memory Usage Monitoring in GCP Compute Engine with or without Stack Driver

五迷三道 提交于 2019-12-23 04:54:38
问题 Cloud Platform - GCP Compute Engine OS - Ubuntu, 16.04 LTS I want to see memory utilization graph just like CPU utilization (compute.googleapis.com/instance/cpu/utilization). I could not find any way to monitor my Compute Engine memory utilization even if Stack-driver is enabled. I checked https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute and there is no endpoint for memory utilization monitoring. I tried stackdriver agent monitoring endpoints also but it is not working ( agent

Get the load, cpu usage and time of executing a bash script

自作多情 提交于 2019-12-13 05:09:55
问题 I have a bash script that I plan to run every 5 or 15 mins using crontab based on the load it puts on server. I can find time of running the script, but load, memory usage and CPU usage I am not sure how to find. Can someone help me? Also any suggestions of rough benchmark that will help me decide if the script puts too much load and should be run every 15 mins and not 5 mins. Thanks in Advance! 回答1: You can use "top -b", top gives the CPU usage, memory usage etc, Insert these lines in your