Push collects/gathers all metrics from all Collectors and Gatherers added to this Pusher. Then, it pushes them to the Pushgateway configured while creating this Pusher, using the configured job name and any added grouping labels as grouping key. All previously pushed metrics with the same job and ot
()
| 123 | // Push returns the first error encountered by any method call (including this |
| 124 | // one) in the lifetime of the Pusher. |
| 125 | func (p *Pusher) Push() error { |
| 126 | return p.push(context.Background(), http.MethodPut) |
| 127 | } |
| 128 | |
| 129 | // PushContext is like Push but includes a context. |
| 130 | // |