Documentation
¶
Overview ¶
This file is the refactored version of https://github.com/open-telemetry/opentelemetry-go-contrib/blob/bridges/prometheus/v0.63.0/bridges/prometheus/producer.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type NftReceiver ¶
type NftReceiver struct {
// contains filtered or unexported fields
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option sets producer option values.
func WithGatherer ¶
func WithGatherer(gatherer prometheus.Gatherer) Option
WithGatherer configures which prometheus Gatherer the Bridge will gather from. If no registerer is used the prometheus DefaultGatherer is used.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewMetricProducer ¶
NewMetricProducer returns a metric.Producer that fetches metrics from Prometheus. This can be used to allow Prometheus instrumentation to be added to an OpenTelemetry export pipeline.