For the complete documentation index, see llms.txt. Markdown versions are available by appending .md to documentation URLs.

Monitor GCP Compute Engine Instance Metrics and Logs

SigNoz Cloud - This page applies to SigNoz Cloud editions.
Self-Hosted Enterprise - This page applies to self-hosted SigNoz with an active license.

The Compute Engine integration brings VM instance metrics and logs into SigNoz, with a pre-built dashboard for the service.

Compute Engine publishes its metrics to Cloud Monitoring and its logs to Cloud Logging. SigNoz reads them through the OpenTelemetry Collector running in your GCP project.

Choose a setup method

One-Click Integration

SigNoz deploys and manages the Collector for you. You turn the service on in SigNoz, and the SigNoz agent sets up metrics and logs collection in the background. Collects metrics and logs.

Prerequisites

  • Your GCP project is connected with One-Click Integration.
  • Your VM instances run in that same project. The agent monitors only the project it's deployed in.

Step 1: Turn on the service in SigNoz

  1. In SigNoz, go to Integrations > Google Cloud Platform.
  2. Select GCP Compute Engine from the service list.
  3. Turn on Metric Collection, Log Collection, or both.
  4. Click Save.

The agent picks up the change within about 30 seconds and updates the Collector and the log sink for you. There's no Collector config to edit.

Step 2: Turn on the optional data in GCP

Most data starts flowing with no extra work. Two kinds of data need a setting on the GCP side first:

  • Memory panels. GCP can't see inside a VM on its own, so memory metrics need help from the VM:
    • % Memory Utilization via Ops Agent needs the Ops Agent installed on the VM.
    • % Memory Utilization and Memory Used in Bytes are only reported by GKE nodes and by VMs running Container-Optimized OS. GKE nodes report them by default. Standalone Container-Optimized OS VMs need health monitoring turned on first: set the google-monitoring-enabled metadata key to true on the VM or project. It's off by default.
  • Logs from inside the VM, such as syslog and application logs, also need the Ops Agent. Without it, SigNoz still collects the Compute Engine audit logs.

Skip this step if you only need CPU, disk, and network metrics and audit logs.

Validate

  1. Wait about 10 minutes for the first metrics to arrive.

  2. In SigNoz, go to Dashboards and open GCP Compute Engine Overview. Panels should start filling in.

  3. If you turned on Log Collection, open Logs in SigNoz and start with this filter to find your project's logs:

    gcp.project = '<deployment-project-id>' AND gcp.resource_type = 'gce_instance'

    Log entries appear within a few minutes of the next VM change or, with the Ops Agent installed, the next log line from the VM. Audit logs for disks, firewall rules, and other Compute Engine resources use other resource types, so drop the gcp.resource_type part to see them too.

    Verify these values:

    • <deployment-project-id>: the GCP project you connected with One-Click Integration.

What's collected

The GCP Compute Engine Overview dashboard has 16 panels. An Uptime total table sits at the top, followed by three sections:

  • CPU & Memory: % CPU Utilization, % Memory Utilization, % Memory Utilization via Ops Agent, Memory Used in Bytes.
  • Disk: Disk average latency, Disk performance status, Disk Read Throughput, Disk Write Throughput, Disk Read IOPS, Disk Write IOPS.
  • Network: Received traffic, Sent traffic, Received packets, Sent packets, Dropped packets.

Two variables scope the panels: project_id and instance_id.

Metrics

See the Data Collected tab in the SigNoz integration for the definitive list the dashboard uses, and the GCP metrics list for full definitions.

Metric nameUnitType
compute.googleapis.com/instance/uptime_totalSecondsGauge
compute.googleapis.com/instance/cpu/utilizationPercentGauge
compute.googleapis.com/guest/memory/bytes_usedBytesGauge
compute.googleapis.com/guest/memory/percent_usedPercentGauge
agent.googleapis.com/memory/percent_usedPercentGauge
compute.googleapis.com/instance/disk/average_io_latencyMicrosecondsGauge
compute.googleapis.com/instance/disk/read_bytes_countBytesSum
compute.googleapis.com/instance/disk/write_bytes_countBytesSum
compute.googleapis.com/instance/disk/read_ops_countCountSum
compute.googleapis.com/instance/disk/write_ops_countCountSum
compute.googleapis.com/instance/disk/performance_statusBoolGauge
compute.googleapis.com/instance/network/received_bytes_countBytesSum
compute.googleapis.com/instance/network/sent_bytes_countBytesSum
compute.googleapis.com/instance/network/received_packets_countCountSum
compute.googleapis.com/instance/network/sent_packets_countCountSum
compute.googleapis.com/firewall/dropped_packets_countCountSum
Logs

With Log Collection turned on, SigNoz collects these logs for your VMs:

LogWhat it containsGCP setup needed
Admin Activity audit logsChanges to Compute Engine resources, such as creating, starting, stopping, or deleting a VM, and changes to disks and firewall rulesNone. GCP always writes these.
System Event audit logsActions Google takes on your VMs, such as live migration, host maintenance, and preemptionNone. GCP always writes these.
Data Access audit logsReads of Compute Engine resources, such as getting or listing VMsTurn on Data Access audit logs for Compute Engine
VM logsLogs written inside the VM, such as syslog and application logsInstall the Ops Agent on the VM

With One-Click Integration, SigNoz applies this log sink filter for you. With Manual Setup, use it when you create your log sink:

resource.type="gce_instance" OR protoPayload.serviceName="compute.googleapis.com"

Troubleshooting

Memory panels are empty. These panels need help from inside the VM. % Memory Utilization via Ops Agent needs the Ops Agent installed. % Memory Utilization and Memory Used in Bytes only report for GKE nodes and for Container-Optimized OS VMs. On a standalone Container-Optimized OS VM, confirm health monitoring is on by checking that the google-monitoring-enabled metadata key is true. CPU, disk, and network panels work without either.

No logs after turning on Log Collection. Audit logs only appear when a VM or other Compute Engine resource changes, so a quiet project may show nothing at first. For logs from inside the VM, confirm the Ops Agent is installed and running. Open Logs Explorer in the GCP Console and filter on resource.type="gce_instance" to see what GCP has written.

No metrics at all (One-Click). Confirm the VMs run in the project the agent is deployed in, and that Metric Collection is on and saved. See the One-Click troubleshooting for agent and Collector checks.

Logs don't arrive (Manual). If Logs Explorer in GCP shows the logs but SigNoz doesn't, work back through the log pipeline: the push subscription must reach the Collector, and the sink's writer identity needs roles/pubsub.publisher on the topic. See Collect logs troubleshooting.

A dashboard panel is empty (Manual). The metric backing that panel is missing from your metrics_list. Compare the Data Collected tab against your otel-collector-config.yaml, add what's missing, and repeat step 3.

No Compute Engine metrics at all (Manual). Confirm the signoz-integration-collector service account holds roles/monitoring.viewer on the project in project_id, and that the Cloud Monitoring API is enabled there. Then check the Cloud Run logs for googlecloudmonitoring receiver errors.

Dropped packets stays at zero. That's the healthy state. The panel only shows incoming packets that a firewall rule dropped.

Next steps

Get Help

If you need help with the steps in this topic, please reach out to us on SigNoz Community Slack. If you are a SigNoz Cloud user, please use in product chat support located at the bottom right corner of your SigNoz instance or contact us at cloud-support@signoz.io.

Is this page helpful

Last updated—October 23, 2026

Edit on GitHub