Skip to content

README: document the OpenTelemetry OTLP push bridge#1987

Open
mvanhorn wants to merge 2 commits intoprometheus:mainfrom
mvanhorn:osc/1495-doc-otel-bridge
Open

README: document the OpenTelemetry OTLP push bridge#1987
mvanhorn wants to merge 2 commits intoprometheus:mainfrom
mvanhorn:osc/1495-doc-otel-bridge

Conversation

@mvanhorn
Copy link
Copy Markdown

Closes #1495.

The OTel contrib bridge at go.opentelemetry.io/contrib/bridges/prometheus has been shipped for a while, but there's no mention of it in client_golang's README, so users who want OTLP push from an app already instrumented with prometheus.Registry don't know it exists and end up double-instrumenting or running the OTel collector's Prometheus receiver.

This adds a short "Pushing metrics via OpenTelemetry OTLP" section to the README after "Instrumenting applications". It:

  • points at the bridge module (both pkg.go.dev and the opentelemetry-go-contrib source),
  • names the two useful cases (batch jobs, push-only environments),
  • and keeps the upstream recommendation that pull-based promhttp is still the default and the bridge is an additional option, not a replacement -- per the wording in the issue body.

No code changes; doc-only.

Notes

  • I did not add a standalone example under docs/ — a contributor mentioned planning a fuller guide there and that's orthogonal to the "link exists from the README" gap this PR closes. If the longer guide lands, this short section can point to it with a single edit.
  • The two bridge URLs return HTTP 200 at time of writing.

Adds a short section pointing users at
`go.opentelemetry.io/contrib/bridges/prometheus`, which wraps a
`prometheus.Registry` so client_golang-instrumented applications can
push metrics via OTLP without re-instrumenting against a different
metric API. Keeps the upstream recommendation that pull-based
`promhttp` is still the default; the bridge is positioned as an
additional option for batch jobs and push-only environments.

Closes prometheus#1495.

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
@mvanhorn mvanhorn force-pushed the osc/1495-doc-otel-bridge branch from 4a1b916 to 128fce6 Compare April 22, 2026 12:36
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.

Document the bridge that allows for client_golang instrumented code to push with OpenTelemetry OTLP

2 participants