Reputation: 11
i have created an instance on compute engine, now i want to know how we can setup stack driver to check RAM usage, CPU utilization and number of users interacting with the instance
Upvotes: 1
Views: 715
Reputation: 2075
To be able to monitor the RAM usage and CPU you need to install the Stackdriver Agent on your instance. The process will change depending on the OS you are using, here is the reference for Linux:
curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh
sudo bash install-monitoring-agent.sh
And for Windows through Powershell:
cd C:\Users\[USERNAME]
invoke-webrequest https://repo.stackdriver.com/windows/StackdriverMonitoring-GCM-46.exe -OutFile StackdriverMonitoring-GCM-46.exe;
.\StackdriverMonitoring-GCM-46.exe
Here is a list of the available metrics for Compute Engine once the agent is installed, but I don't think the number of users logged in is one of them.
Upvotes: 2