Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name string
Name represents a valid Prometheus metric name.
func BuildName ¶
BuildName creates a valid Prometheus metric name from the given strings. It joins the strings with underscores, converts to lowercase, replaces leading numbers and illegal characters with underscores, and collapses multiple consecutive underscores into one.
type Pusher ¶
type Pusher interface {
// Push pushes all registered metrics to the Pushgateway.
Push(ctx context.Context) error
// Gatherer sets the Gatherer to use for collecting metrics.
Gatherer(gatherer prometheus.Gatherer) Pusher
// Collector adds a Collector to the Pusher.
Collector(collector prometheus.Collector) Pusher
// Client sets a custom HTTP client for the Pusher.
Client(httpClient push.HTTPDoer) Pusher
}
Pusher pushes metrics to a Prometheus Pushgateway.
Click to show internal directories.
Click to hide internal directories.