Hide

Supported metrics

The following tables list the metrics that are available through the Cloud Monitoring API, and the labels attached to these metrics that provide information specific to your query.

Common Metric Labels for All Metrics

Label name Description
cloud.googleapis.com/service Identifies the Cloud service.

Common Metric Labels for App Engine Metrics

Label name Description
cloud.googleapis.com/location The location of the app.
appengine.googleapis.com/module The module name of the app.
appengine.googleapis.com/version The version id of the app.

Common Metric Labels for Compute Engine Metrics

Label name Description
cloud.googleapis.com/location The zone of the resource.
compute.googleapis.com/resource_type The type of resource; for example, VM instance.
compute.googleapis.com/resource_id The identifier for the resource, for example, instance id.

Common Metric Labels for Cloud SQL Metrics

Label name Description
cloud.googleapis.com/location The geographical region of the resource. For example, us-central.
cloudsql.googleapis.com/resource_type The type of resource; for example, instance.
cloudsql.googleapis.com/resource_id The identifier for the resource, for example, the instance name.

Common Metric Labels for Cloud Pub/Sub Metrics

Label name Description
pubsub.googleapis.com/resource_type The type of resource; for example, topic or subscription.
pubsub.googleapis.com/resource_id The resource name.

Metric Types

Metric type Description
cumulative The value is a total, accumulated since a given start time. For example, the total number of errors detected since a process started.
delta The value is a change over a specified time period. For example, the number of errors detected in a minute.
gauge The value is an instantaneous sample of a continuously-varying metric at a specific time. For example, a CPU's current temperature.

Metrics

Metric name Type Value Description Related labels
appengine.googleapis.com/http/server/dos_intercept_count delta int64 Delta count of interceptions performed to prevent DoS attacks.
appengine.googleapis.com/http/server/pagespeed_response_count delta int64 Delta count of HTTP responses to a pagespeed entity.
appengine.googleapis.com/http/server/quota_denial_count delta int64 Delta count of requests that failed due to the app being over quota.
appengine.googleapis.com/http/server/response_count delta int64 Delta HTTP response count.
appengine.googleapis.com/loading
Indicates whether the request was loading.
appengine.googleapis.com/response_code
HTTP status code for the request.
appengine.googleapis.com/http/server/response_latencies delta distribution Distribution of latencies.
appengine.googleapis.com/loading
Indicates whether the request was loading.
appengine.googleapis.com/response_code
HTTP status code for the request.
appengine.googleapis.com/http/server/response_style_count delta int64 Delta counts on the HTTP serve style.
appengine.googleapis.com/dynamic
Indicates if the request was a static or dynamic request.
appengine.googleapis.com/cached
Indicates if the response was cached.
appengine.googleapis.com/system/instance_count gauge int64 Number of instances that exist.
appengine.googleapis.com/state
State of instance (active, idle, etc).
appengine.googleapis.com/system/network/pagespeed_sent_bytes_count delta int64 Outgoing network bandwidth delta.
appengine.googleapis.com/system/network/received_bytes_count delta int64 Delta count of incoming network bandwidth.
appengine.googleapis.com/cached
Indicates if response was cached.
appengine.googleapis.com/system/network/sent_bytes_count delta int64 Delta count of outgoing network bandwidth.
appengine.googleapis.com/cached
Indicates if response was cached.
cloudsql.googleapis.com/database/disk/bytes_used gauge int64 Data utilization in bytes.
cloudsql.googleapis.com/database/disk/write_ops_count delta int64 Delta count of disk write IO operations.
cloudsql.googleapis.com/database/mysql/innodb_data_fsyncs delta int64 Delta count of InnoDB fsync() calls.
cloudsql.googleapis.com/database/mysql/innodb_os_log_fsyncs delta int64 Delta count of InnoDB fsync() calls to the log file.
cloudsql.googleapis.com/database/mysql/innodb_pages_read delta int64 Delta count of InnoDB pages read.
cloudsql.googleapis.com/database/mysql/innodb_pages_written delta int64 Delta count of InnoDB pages written.
cloudsql.googleapis.com/database/mysql/queries delta int64 Delta count of statements executed by the server.
cloudsql.googleapis.com/database/mysql/questions delta int64 Delta count of statements executed by the server sent by the client.
cloudsql.googleapis.com/database/network/connections gauge int64 Number of connections to the Cloud SQL instance.
cloudsql.googleapis.com/database/network/sent_bytes_count delta int64 Delta count of bytes sent through the network.
cloudsql.googleapis.comcloudsql.googleapis.com/destination
cloudsql.googleapis.com/database/up gauge int64 Indicates if the server is up or not. On-demand instances are spun down if no connections are made for a sufficient amount of time.
cloudsql.googleapis.com/database/uptime delta int64 Delta count of the time in seconds the instance has been running.
compute.googleapis.com/firewall/dropped_bytes_count delta int64 Delta count of incoming bytes dropped by the firewall.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/firewall/dropped_packets_count delta int64 Delta count of incoming packets dropped by the firewall.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/instance/cpu/reserved_cores gauge double Number of cores reserved on the host of the instance.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/instance/cpu/usage_time delta double Delta CPU usage time. Units are seconds. You can get the per-core CPU utilization ratio by performing a rate operation on a point: doubleValue/(end-start), then divide by compute.googleapis.com/instance/cpu/reserved_cores at the corresponding end timestamp.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/instance/disk/read_bytes_count delta int64 Delta count of bytes read from disk.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/device_name
The name of the disk device.
compute.googleapis.com/storage_type
compute.googleapis.com/device_type
Specifies the disk type, either ephemeral or permanent.
compute.googleapis.com/instance/disk/read_ops_count delta int64 Delta count of disk read IO operations.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/device_name
The name of the disk device.
compute.googleapis.com/storage_type
compute.googleapis.com/device_type
Specifies the disk type, either ephemeral or permanent.
compute.googleapis.com/instance/disk/write_bytes_count delta int64 Delta count of bytes written to disk.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/device_name
The name of the disk device.
compute.googleapis.com/storage_type
compute.googleapis.com/device_type
Specifies the disk type, either ephemeral or permanent.
compute.googleapis.com/instance/disk/write_ops_count delta int64 Delta count of disk write IO operations.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/device_name
The name of the disk device.
compute.googleapis.com/storage_type
compute.googleapis.com/device_type
Specifies the disk type, either ephemeral or permanent.
compute.googleapis.com/instance/network/received_bytes_count delta int64 Delta count of bytes received from network.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/loadbalanced
Indicates whether traffic was either received from or sent to a load balanced IP address.
compute.googleapis.com/instance/network/received_packets_count delta int64 Delta count of packets received from network.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/loadbalanced
Indicates whether traffic was either received from or sent to a load balanced IP address.
compute.googleapis.com/instance/network/sent_bytes_count delta int64 Delta count of bytes sent over network.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/loadbalanced
Indicates whether traffic was either received from or sent to a load balanced IP address.
compute.googleapis.com/instance/network/sent_packets_count delta int64 Delta count of packets sent over network.
compute.googleapis.com/instance_name
The name of the VM instance.
compute.googleapis.com/loadbalanced
Indicates whether traffic was either received from or sent to a load balanced IP address.
compute.googleapis.com/instance/uptime delta double Indicates the VM running time in seconds.
compute.googleapis.com/instance_name
The name of the VM instance.
network.googleapis.com/loadbalancer/request_count delta int64 Delta count of requests per second, grouped by backend.
network.googleapis.com/destination_zone
The zone to which requests were sent.
network.googleapis.com/destination_group
The name of the group (within the zone) to which requests were sent.
network.googleapis.com/source
network.googleapis.com/frontend
pubsub.googleapis.com/subscription/config_updates_count delta int64 Delta count of configuration changes for subscriptions, grouped by operation type and result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/operation_type
Type of operation performed.
pubsub.googleapis.com/subscription/num_outstanding_messages gauge int64 Current number of messages delivered but not yet acknowledged.
pubsub.googleapis.com/subscription/num_undelivered_messages gauge int64 Current number of messages pending to be delivered.
pubsub.googleapis.com/subscription/pull_ack_request_count delta int64 Delta count of message pull acknowledgement requests, grouped by result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/subscription/pull_request_count delta int64 Delta count of message pull requests, grouped by result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/subscription/push_request_count delta int64 Delta count of message push attempts, grouped by result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/delivery_type
Push delivery mechanism.
pubsub.googleapis.com/subscription/push_request_latencies delta distribution Distribution of push request latencies (in microseconds), grouped by result.
pubsub.googleapis.com/response_code
Operation response code, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/delivery_type
Push delivery mechanism.
pubsub.googleapis.com/topic/config_updates_count delta int64 Delta count of configuration changes for topics, grouped by operation type and result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).
pubsub.googleapis.com/operation_type
Type of operation performed.
pubsub.googleapis.com/topic/message_sizes delta distribution Distribution of message sizes (in bytes) sent to a topic.
pubsub.googleapis.com/topic/send_request_count delta int64 Delta count of message send requests, grouped by result.
pubsub.googleapis.com/response_code
Operation response code string, derived as a string representation of a HTTP status code (e.g. success, not_found, unavailable).