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

Method Add

prometheus/push/push.go:139–141  ·  view source on GitHub ↗

Add works like push, but only previously pushed metrics with the same name (and the same job and other grouping labels) will be replaced. (It uses HTTP method “POST” to push to the Pushgateway.)

()

Source from the content-addressed store, hash-verified

137// (and the same job and other grouping labels) will be replaced. (It uses HTTP
138// method “POST” to push to the Pushgateway.)
139func (p *Pusher) Add() error {
140 return p.push(context.Background(), http.MethodPost)
141}
142
143// AddContext is like Add but includes a context.
144//

Callers

nothing calls this directly

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected