簡體   English   中英

Windows GCP 監控中未檢測到 GCP 中的實例

[英]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 實例上安裝了任何代理,則您可以通過執行以下操作來安裝代理:

  • Select 您要在其上安裝代理的 VM 實例。
  • 單擊 Instances 表上的 Install agents 選項,這會在儀表板中顯示安裝工作流,然后按照說明進行操作。 Ops Agent 是默認安裝的代理,但安裝工作流程提供了一個鏈接來安裝舊版代理。

有關雲監控的更多信息,請參閱鏈接

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM