Windows Instance in GCP not detected in GCP Monitoring

Viewed 73

I have a windows instance without public IP, installed the monitoring agent using the below powershell command:

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"

It got installed successfully and the service is running, when I check from the GCP console under monitoring section, it is showing as agent not installed.

1 Answers

You can install the agent on one or more Compute Engine VMs from the pre-configured Monitoring VM Instances dashboard.

The Inventory tab on the VM Instances dashboard lists all VMs and includes a status column for your agent.

The Agent column reports the status as Not detected if it is not detected by cloud monitoring.

Not detected: You don't have an agent installed. If Cloud Monitoring doesn't detect any agents installed on the Compute Engine instance, then you can install an agent by doing the following:

  • Select the VM instances on which you want to install agents.
  • Click the Install agents option on the Instances table, which brings up an installation workflow in the dashboard, and follow the instructions. The Ops Agent is the default agent that is installed, but the installation workflow provides a link to install the legacy agents.

Refer to the link for more information on cloud monitoring.

Related