opentelemetry-exporter-gcp-monitoring
Google Cloud Monitoring exporter for OpenTelemetry
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-monitoringuv
uv add opentelemetry-exporter-gcp-monitoringpoetry
poetry add opentelemetry-exporter-gcp-monitoringInstalling 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
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-exporter-gcp-loggingExports OpenTelemetry logs to Google Cloud…
permissive · top 5,000 on PyPI
opentelemetry-exporter-gcp-traceExports OpenTelemetry traces to Google Cloud…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-gcpAutomatically detects and reports GCP resource…
permissive · top 5,000 on PyPI
opentelemetry-propagator-gcpPropagates trace context in Google Cloud's…
permissive · top 5,000 on PyPI
opentelemetry-exporter-otlp-proto-grpcExports telemetry data from Python applications…
permissive · top 1,000 on PyPI
azure-monitor-opentelemetry-exporterExports OpenTelemetry traces, metrics, and logs…
permissive · top 1,000 on PyPI
opentelemetry-exporter-otlpInstalls OpenTelemetry exporters for sending…
permissive · top 1,000 on PyPI
opentelemetry-exporter-otlp-proto-commonProvides Protobuf encoding utilities for…
permissive · top 1,000 on PyPI
newrelic-telemetry-sdkSends custom metrics, events, logs, and…
permissive · top 5,000 on PyPI