GCP Compute Engine

Metrics, Dashboards, Alerts and more for GCP Compute Engine Integration in Sysdig Monitor.
GCP Compute Engine

You can enable this integration using the Connect a GCP Account option on the Monitor UI.

This integration has 11 metrics.

List of Alerts

AlertDescriptionFormat
[GCP Compute Engine] High CPU UsageThe CPU of the GCP Compute Engine is over 95%.Prometheus
[GCP Compute Engine] High Memory UsageThe Memory of the GCP Compute Engine is over 95%.Prometheus
[GCP Compute Engine] Disk Partition Almost FullA disk partition of the GCP Compute Engine is over 80%.Prometheus

List of Dashboards

GCP Compute Engine

The dashboard provides information on the GCP Compute Engine integration.

List of Metrics

Metric name
gcp_gce_instance_disk_percent_used
gcp_gce_instance_instance_cpu_reserved_cores
gcp_gce_instance_instance_cpu_utilization
gcp_gce_instance_instance_disk_read_bytes_count
gcp_gce_instance_instance_disk_read_ops_count
gcp_gce_instance_instance_disk_write_bytes_count
gcp_gce_instance_instance_disk_write_ops_count
gcp_gce_instance_instance_memory_balloon_ram_size
gcp_gce_instance_instance_memory_balloon_ram_used
gcp_gce_instance_instance_network_received_bytes_count
gcp_gce_instance_instance_network_sent_bytes_count

Monitoring and Troubleshooting GCP Cloud Compute Engine

This document describes important metrics and queries that you can use to monitor and troubleshoot GCP Cloud Compute Engine.

The GCP metrics of type DELTA, which typically have the suffix _count in their name (but not always), return the cumulative value of 1 minute. They need to be divided by 60 to get the value per second.

Please, note that you need to install the Cloud Monitoring Agent in the Compute Engine instances you need to monitor.

CPU

Use the following query to get the current CPU utilization represented as a percentage of the reserved CPU that is currently in use. The return values are typically numbers between 0 and 1 (but might exceed 1).

gcp_gce_instance_instance_cpu_utilization

Memory

Use the following query to get the percentage of the memory quota that is currently in use. The return values are numbers between 0 and 1.

gcp_gce_instance_instance_memory_balloon_ram_used / gcp_gce_instance_instance_memory_balloon_ram_size

Disk

Use the following query to get the percentage of the disk quota that is currently in use. The return values are numbers between 0 and 1.

gcp_gce_instance_disk_percent_used{state="used"}

Use the following queries to get the disk read and write IO operations per second.

gcp_gce_instance_instance_disk_read_ops_count / 60
gcp_gce_instance_instance_disk_write_ops_count / 60

Network

Use the following query to get the number of connections to databases on the Cloud Compute Engine instance.

gcp_gce_instance_vm_flow_connection_count

Use the following queries to get the bytes received and sent through the network per second.

gcp_gce_instance_instance_network_received_bytes_count / 60
gcp_gce_instance_instance_network_sent_bytes_count / 60