Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncrementInstrument ¶
type MetricsProvider ¶
type MetricsProvider interface {
NewSetCounter(name string, labels []string) SetInstrument
NewIncrementCounter(name string, labels []string) IncrementInstrument
NewGauge(name string, labels []string) SetInstrument
NewHistogram(name string, labels []string, buckets []float64) SetInstrument
}
func NewPrometheusMetricsProvider ¶
func NewPrometheusMetricsProvider(ctx context.Context, opts *PrometheusOpts) (MetricsProvider, error)
type PrometheusOpts ¶
type PrometheusOpts struct {
Port uint32
MetricsPath string
Registry *prometheus.Registry
}
Click to show internal directories.
Click to hide internal directories.