Googlecloudmonitoring Receiver
contrib
Maintainers: @dashpole, @TylerHelmuth
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
This receiver gets GCP (Google Cloud Platform) metrics from GCP Monitoring REST API via the Google SDK for GCP Metrics and then convert those timeseries data into OTel Format Pipeline Data.Configuration
The following configuration options are supported:collection_interval(Optional): The interval at which metrics are collected. Default is 300s, minimum is 60s. Be careful of the costs and quotas when setting a low interval.initial_delay(default =1s): defines how long this receiver waits before starting.timeout: (default =1m) The timeout of running commands against the GCP Monitoring REST API.project_id(Required): The GCP project ID.metrics_list(Required): A list of services metrics to monitor.
metric_name(Optional): The specific metric name to collect.metric_descriptor_filter(Optional): Filter for listing metric descriptors. Only supportprojectandmetric.typeas filter objects.
metric_name and metric_descriptor_filter MUST be specified, but MUST not be specified at the same time.
Authentication with Google Cloud
For more details on authentication, refer to the Google Cloud Application Default Credentials documentation. Note that if your workload is running on Google Cloud Platform (GCP), the service account credentials will be used automatically without needing to set the environment variable manually.Filtering
Metrics Parameters :- A monitoring filter that specifies which time series should be returned. The filter must specify a single metric type. For example:
metric_name: "compute.googleapis.com/instance/cpu/usage_time"
Configuration
Example Configuration
Last generated: 2026-04-13