Skip to content

Implement prometheus-collector-bridge#477

Open
ArthurSens wants to merge 3 commits intomasterfrom
embeddable-stackdriver-exporter
Open

Implement prometheus-collector-bridge#477
ArthurSens wants to merge 3 commits intomasterfrom
embeddable-stackdriver-exporter

Conversation

@ArthurSens
Copy link

Summary

Adds a new otelcollector/ Go module that implements the prometheus-collector-bridge interfaces, enabling the stackdriver exporter to run as a native OpenTelemetry Collector receiver.

This is a proof of concept for the upstream proposal prometheus/proposals#69, which aims to embed existing Prometheus exporters inside OTel Collector distributions.

Design decisions

  • Separate Go module (otelcollector/): Keeps all OTel Collector dependencies (bridge, collector SDK, pdata, etc.) out of the main module's dependency tree. The parent module is imported via a local replace directive.

  • Single long-lived registry: The bridge expects ExporterLifecycleManager.Start() to return one *prometheus.Registry that it periodically gathers from. We create it once at startup and register a MonitoringCollector per resolved project, rather than the per-request registries used by the HTTP handler.

  • Full config parity: Every CLI flag (except deprecated and web-server-specific ones) is mapped to exporter_config via mapstructure tags.

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
@ArthurSens ArthurSens requested a review from kgeckhart March 4, 2026 18:30
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
ArthurSens added a commit to ArthurSens/prometheus-opentelemetry-collector that referenced this pull request Mar 4, 2026
Point the stackdriver_exporter modules to the actual PR commit
(prometheus-community/stackdriver_exporter#477) so the build
no longer depends on a local filesystem layout.

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Made-with: Cursor
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant