我在计算引擎上创建了一个实例,现在我想知道如何设置堆栈驱动程序来检查RAM使用率,CPU利用率和与实例交互的用户数
答案 0 :(得分:2)
为了能够监控您在实例上安装Stackdriver Agent所需的RAM使用率和CPU。该过程将根据您使用的操作系统而变化,以下是Linux的参考:
curl -sSO https://dl.google.com/cloudagents/install-monitoring-agent.sh
sudo bash install-monitoring-agent.sh
对于Windows通过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,但我认为登录的用户数量不是其中之一。