How to Setup GCP Monitoring

How to Setup GCP Monitoring

SETUP GUIDE

How to Setup GCP Monitoring

Monitor Google Cloud Platform instances and resources in real time. Track availability, CPU, memory, disk, and network performance across your GCP infrastructure from a single view.

Overview

Cloudmon supports agentless monitoring of GCP resources using Google Cloud's native APIs. Once a GCP account is added, Cloudmon automatically discovers your Compute Engine instances and begins collecting performance and availability metrics at the configured discovery interval.

Navigate to Cloud → GCP to view all monitored GCP accounts and their associated resources.

How It Works

Cloudmon connects to your GCP project using a Service Account with read-only permissions. It calls the Compute Engine and Cloud Monitoring APIs at regular intervals to pull metrics, resource lists, and configuration data. Nothing is installed inside your GCP environment. The connection is made from a Cloudmon probe using the Service Account key you upload, so the probe requires outbound internet access to reach the GCP APIs.

Prerequisites

Cloudmon connects to GCP using a Service Account JSON file with the appropriate read-only permissions. Before adding a GCP account in Cloudmon, complete the following steps in the Google Cloud Console:

  1. In the Google Cloud Console, navigate to IAM & Admin → Service Accounts.
  2. Create a new Service Account and assign it the Viewer role at the project level to grant read-only access to all resources.
  3. Under the Service Account, go to Keys → Add Key → Create new key, select JSON, and download the generated key file. You will upload this file when adding the account in Cloudmon.
  4. Ensure the following APIs are enabled in your GCP project: Compute Engine API and Cloud Monitoring API.

Adding a GCP Account

To start monitoring GCP in Cloudmon, navigate to Cloud → GCP → Add Google Cloud. The form is split into three sections.

Section 1 — Account & Monitoring Setup

Configure the monitor name, services to monitor, and discovery settings.

FieldDescription
Probe*The Cloudmon probe that connects to the GCP account and collects the data. The probe requires outbound internet access to reach the GCP APIs.
Monitor NameA display name for this GCP account in Cloudmon, for example Production GCP Account.
Enable Auto-DiscoveryWhen enabled, Cloudmon automatically discovers new resources added to the GCP project at each discovery interval. Enabled by default.
ServicesSelect the GCP services to monitor. Currently supports Compute Instance.
Discovery IntervalHow frequently Cloudmon scans the GCP project for new or removed resources. Options: 6 hours, 12 hours, Daily, Weekly.

Section 2 — Service Account Credentials

Upload the JSON key file generated for the GCP Service Account. Click Choose File and select the downloaded JSON key file from your machine. Cloudmon uses this file to authenticate all API requests to your GCP project.


Section 3 — Resource Configuration & Filtering

Configure how Cloudmon handles resource changes and filter which resources are monitored using GCP labels.

OptionDescription
Mute Resource Deletion AlertsWhen enabled, Cloudmon will not raise an alert when a monitored GCP resource is removed. Useful for auto-scaling environments where instances are regularly terminated.
Continue Monitoring Terminated ResourcesWhen enabled, Cloudmon continues tracking a resource after it has been terminated in GCP, retaining its historical data in the Cloudmon database.
Enable Auto DeleteWhen enabled, Cloudmon automatically removes a monitor from its database when the corresponding GCP resource is deleted.
Exclude / Include Resources Using LabelsFilter which GCP resources Cloudmon monitors based on GCP labels. Select Exclude to skip resources with specific labels, or Include to monitor only resources with specific labels.

Organization

Optionally configure grouping and dependency settings for this GCP account.

FieldDescription
Depends OnLink this GCP account to a parent monitor. Alerts for this account are suppressed if the parent monitor is down.
GroupsAssign this GCP account to one or more Cloudmon groups for organised access and bulk alarm rule association.
TagsOptional labels for organising and filtering this GCP account within Cloudmon.

Once all fields are filled in, click Save to add the account. Cloudmon will initiate the first discovery cycle immediately.