package prometheus
import "go.opentelemetry.io/otel/exporters/prometheus"
Package prometheus provides a Prometheus Exporter that converts OTLP metrics into the Prometheus exposition format and implements prometheus.Collector to provide a handler for these metrics.
Index ¶
Types ¶
type Exporter ¶
type Exporter struct { metric.Reader Collector prometheus.Collector }
Exporter is a Prometheus Exporter that embeds the OTel metric.Reader interface for easy instantiation with a MeterProvider.
func New ¶
New returns a Prometheus Exporter.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option may be used in the future to apply options to a Prometheus Exporter config.
Source Files ¶
doc.go exporter.go
- Version
- v0.32.3
- Published
- Oct 12, 2022
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- now –
Tools for package owners.