MCPcopy
hub / github.com/prometheus/client_golang / Gatherer

Method Gatherer

prometheus/push/push.go:155–158  ·  view source on GitHub ↗

Gatherer adds a Gatherer to the Pusher, from which metrics will be gathered to push them to the Pushgateway. The gathered metrics must not contain a job label of their own. For convenience, this method returns a pointer to the Pusher itself.

(g prometheus.Gatherer)

Source from the content-addressed store, hash-verified

153//
154// For convenience, this method returns a pointer to the Pusher itself.
155func (p *Pusher) Gatherer(g prometheus.Gatherer) *Pusher {
156 p.gatherers = append(p.gatherers, g)
157 return p
158}
159
160// Collector adds a Collector to the Pusher, from which metrics will be
161// collected to push them to the Pushgateway. The collected metrics must not

Callers 2

TestPushFunction · 0.80
ExamplePusher_AddFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestPushFunction · 0.64
ExamplePusher_AddFunction · 0.64