~/til/gcp-cloud-monitoring-agent

GCP: Installing Cloud Monitoring and Logging Agent

Today I learned how to install the Google Cloud Operations agent on a GCP VM instance to enable Cloud Monitoring and Logging.

Install the Cloud Monitoring Agent

Run the Monitoring agent install script command in the SSH terminal of your VM instance:

curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
sudo bash add-google-cloud-ops-agent-repo.sh --also-install

If asked if you want to continue, press Y.

Verify Installation

Check the status of the Google Cloud Operations agent:

sudo systemctl status google-cloud-ops-agent"*"

References

Google Cloud Operations Agent Documentation

Dario Camargo

Software Engineer
Go, Java, Python

Currently at Mercado Livre
Proximity / Delivery Platforms

Location: São Paulo - Brazil - UTC-3

Languages:
- Portuguese (Native)
- English (Fluent)
- Spanish (B2)

Dario standing

Projects

Today I Learned