skillfed

opentelemetry-exporter-gcp-monitoring

Google Cloud Monitoring exporter for OpenTelemetry

opentelemetry-exporter-gcp-monitoring v1.14.0a0 6.5M downloads/30d#1,892 on PyPI83
Permissive license Apache-2.0 Active released

What it is and what it does

This package exports OpenTelemetry metrics to Google Cloud Monitoring by wrapping the google-cloud-monitoring client library. It integrates with the OpenTelemetry SDK's metric reader pattern, allowing you to define meters and counters that automatically ship to Cloud Monitoring on a periodic schedule.

However, the package is deprecated. Google Cloud now supports native OpenTelemetry Protocol (OTLP) ingestion directly for metrics, traces, and logs via the Telemetry API, making this exporter unnecessary for new projects. The maintainers recommend migrating to standard OTLP exporters instead. If you are starting a new integration, use OTLP; if you maintain existing code using this exporter, plan a migration.

Use it for:

  • Exporting custom application metrics from Python services running on Google Cloud to Cloud Monitoring dashboards.
  • Integrating OpenTelemetry instrumentation with legacy Google Cloud monitoring infrastructure that predates OTLP support.
  • Monitoring batch jobs or background workers that emit metrics via OpenTelemetry SDK.
  • Bridging existing OpenTelemetry metric pipelines to Cloud Monitoring when OTLP ingestion is not yet available in your environment.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Exports OpenTelemetry metrics to Google Cloud Monitoring, but is deprecated in favor of native OTLP ingestion via the Telemetry API.

No, unless you are maintaining existing code already using this exporter. For new projects, use native OTLP exporters instead—Google explicitly recommends this migration path. The package is deprecated and actively discouraged by its maintainers.

Install

opentelemetry-exporter-gcp-monitoring on PyPI

pip

pip install opentelemetry-exporter-gcp-monitoring

uv

uv add opentelemetry-exporter-gcp-monitoring

poetry

poetry add opentelemetry-exporter-gcp-monitoring

Installing opentelemetry-exporter-gcp-monitoring

Before you install

Low install friction with a pure-Python wheel and active maintenance (last commit 2026-08-12), but the package is explicitly deprecated and Google recommends migrating to standard OTLP exporters instead.

License in practice

Apache-2.0 permissive license allows commercial and private use without restriction.

Quickstart

pip install opentelemetry-exporter-gcp-monitoring

from opentelemetry import metrics
from opentelemetry.exporter.cloud_monitoring import CloudMonitoringMetricsExporter
from opentelemetry.sdk.metrics import MeterProvider
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader

metrics.set_meter_provider(
    MeterProvider(
        metric_readers=[PeriodicExportingMetricReader(CloudMonitoringMetricsExporter())]
    )
)

Requires Python 3.9 or later and valid Google Cloud credentials for authentication to Cloud Monitoring.

Verify before relying

  • Whether existing deployments using this exporter will continue to work after Google deprecates the underlying API.
  • Performance characteristics and metric throughput limits compared to native OTLP ingestion.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 5 — google-cloud-monitoring, opentelemetry-api, opentelemetry-sdk, opentelemetry-resourcedetector-gcp, typing-extensions
Maintenance actively maintained — 11 days since the last release
Last repo commit
First released
Downloads 6,535,227/month — #1,892 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opentelemetry_exporter_gcp_monitoring-1.14.0a0-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

opentelemetry metrics export gcpgoogle cloud monitoring exportercloud monitoring metrics pythonopentelemetry gcp integrationstackdriver metrics exporter
deprecatedobservabilitygcp

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-exporter-gcp-logging

Exports OpenTelemetry logs to Google Cloud…

permissive · top 5,000 on PyPI

opentelemetry-exporter-gcp-trace

Exports OpenTelemetry traces to Google Cloud…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-gcp

Automatically detects and reports GCP resource…

permissive · top 5,000 on PyPI

opentelemetry-propagator-gcp

Propagates trace context in Google Cloud's…

permissive · top 5,000 on PyPI

opentelemetry-exporter-otlp-proto-grpc

Exports telemetry data from Python applications…

permissive · top 1,000 on PyPI

azure-monitor-opentelemetry-exporter

Exports OpenTelemetry traces, metrics, and logs…

permissive · top 1,000 on PyPI

opentelemetry-exporter-otlp

Installs OpenTelemetry exporters for sending…

permissive · top 1,000 on PyPI

opentelemetry-exporter-otlp-proto-common

Provides Protobuf encoding utilities for…

permissive · top 1,000 on PyPI

newrelic-telemetry-sdk

Sends custom metrics, events, logs, and…

permissive · top 5,000 on PyPI