Documentation ¶
Overview ¶
Package prometheus provides a prometheus exporter.
Package prometheus provides a prometheus exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
func Exporter ¶
func Exporter() (Prometheus, error)
func New ¶
func New(opts ...PrometheusOption) (Prometheus, error)
type PrometheusOption ¶
type PrometheusOption func(*prometheusOptions) error
func WithEndpoint ¶
func WithEndpoint(ep string) PrometheusOption
func WithNamespace ¶
func WithNamespace(ns string) PrometheusOption
func WithOnErrorFunc ¶ added in v0.0.24
func WithOnErrorFunc(f func(error)) PrometheusOption
Click to show internal directories.
Click to hide internal directories.