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 ¶
type Prometheus interface { Start(ctx context.Context) error Stop(ctx context.Context) Exporter() *prometheus.Exporter NewHTTPHandler() http.Handler }
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
Click to show internal directories.
Click to hide internal directories.