[英]Windows Instance in GCP not detected in GCP Monitoring
我有一個沒有公共 IP 的 windows 實例,使用以下 powershell 命令安裝了監控代理:
Launch Powershell as administrator and run the below command:
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.ps1", "${env:UserProfile}\add-google-cloud-ops-agent-repo.ps1")
Invoke-Expression "${env:UserProfile}\add-google-cloud-ops-agent-repo.ps1 -AlsoInstall"
它已成功安裝並且服務正在運行,當我從監控部分下的 GCP 控制台檢查時,它顯示為未安裝代理。
您可以從預配置的 Monitoring VM Instances 儀表板在一個或多個 Compute Engine VM 上安裝代理。
VM Instances 儀表板上的Inventory 選項卡列出了所有 VM 並包含代理的狀態列。
如果未被雲監控檢測到,Agent 列報告狀態為Not detected 。
未檢測到:您沒有安裝代理。 如果 Cloud Monitoring 未檢測到 Compute Engine 實例上安裝了任何代理,則您可以通過執行以下操作來安裝代理:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.