我已经在计算引擎上创建了一个实例,现在我想知道如何设置堆栈驱动程序来检查RAM使用率,CPU利用率和与实例交互的用户数量
为了能够监视RAM使用情况和CPU,您需要在实例上安装Stackdriver Agent . 该过程将根据您使用的操作系统而变化,以下是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,但我不认为登录的用户数是其中之一 .
1 回答
为了能够监视RAM使用情况和CPU,您需要在实例上安装Stackdriver Agent . 该过程将根据您使用的操作系统而变化,以下是Linux的参考:
而对于Windows,通过Powershell:
安装代理后,计算引擎的可用指标是Here is a list,但我不认为登录的用户数是其中之一 .