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)
| 153 | // |
| 154 | // For convenience, this method returns a pointer to the Pusher itself. |
| 155 | func (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 |
no outgoing calls