How to Setup GCP Monitoring

How to Setup GCP Monitoring

Cloud Monitoring

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.

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
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.

    • Related Articles

    • How to setup AWS Monitoring

      Setup Guide How to Set Up AWS Monitoring in Cloudmon Connect your AWS account to Cloudmon using read-only IAM credentials. Once connected, Cloudmon auto-discovers your resources and begins collecting metrics in real time. Overview Amazon Web Services ...
    • How to configure a Monitoring Profile for an agent in cloudmon?

      By default, the monitoring profile default is configured for every entity. The default profile includes all the metrics for monitoring and can be modified if required. Follow the steps to change the profile from default to the user-defined profile ...
    • Agent Vs Agentless Monitoring in cloudmon

      Attribute Agent-based Monitoring Agentless Monitoring – SNMP, WMI, TCP, ICMP Methodology Deploy the Cloudmon Agent on each server that requires monitoring. Cloudmon uses Probes to monitor IP network endpoints and devices in the network such as ...
    • How can I stop monitoring a Hosts/Agents Permanently?

      To stop monitoring permanently for a particular agent, Uninstall the agent on the server. Go to Settings, then select Monitoring > Hosts/Agents > Delete an agent. To To stop the agent service on your server: On Linux, run the command "yum remove ...
    • What is the significance of Connection Details in monitoring?

      Connection Details in monitoring are essential for diagnosing and troubleshooting network and application performance issues, enabling optimization.