| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
// Package prometheus provides a bridge from Prometheus to OpenTelemetry. |
| 5 |
// |
| 6 |
// The Prometheus Bridge allows using the [Prometheus Golang client library] |
| 7 |
// with the OpenTelemetry SDK. This enables prometheus instrumentation libraries |
| 8 |
// to be used with OpenTelemetry exporters, including OTLP. |
| 9 |
// |
| 10 |
// Prometheus histograms are translated to OpenTelemetry exponential histograms |
| 11 |
// when native histograms are enabled in the Prometheus client. To enable |
| 12 |
// Prometheus native histograms, set the (currently experimental) NativeHistogram... |
| 13 |
// options of the prometheus [HistogramOpts] when creating prometheus histograms. |
| 14 |
// |
| 15 |
// While the Prometheus Bridge has some overhead, it can significantly reduce the |
| 16 |
// combined overall CPU and Memory footprint when sending to an OpenTelemetry |
| 17 |
// Collector. See the [benchmarks] for more details. |
| 18 |
// |
| 19 |
// [Prometheus Golang client library]: https://github.com/prometheus/client_golang |
| 20 |
// [HistogramOpts]: https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#HistogramOpts |
| 21 |
// [benchmarks]: https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/bridges/prometheus/BENCHMARKS.md |
| 22 |
package prometheus // import "go.opentelemetry.io/contrib/bridges/prometheus" |