package
0.9.1
Repository: https://github.com/joomcode/client_golang.git
Documentation: pkg.go.dev

# Functions

AddCollectors works like AddFromGatherer, but it does not use a Gatherer.
AddFromGatherer works like FromGatherer, but only previously pushed metrics with the same name (and the same job and other grouping labels) will be replaced.
Collectors works like FromGatherer, but it does not use a Gatherer.
FromGatherer triggers a metric collection by the provided Gatherer (which is usually implemented by a prometheus.Registry) and pushes all gathered metrics to the Pushgateway specified by url, using the provided job name and the (optional) further grouping labels (the grouping map may be nil).
HostnameGroupingKey returns a label map with the only entry {instance="<hostname>"}.
New creates a new Pusher to push to the provided URL with the provided job name.

# Structs

Pusher manages a push to the Pushgateway.