Fix top-level examples in push.go.
As mentioned in the func doc for New(): "However, do not include the “/metrics/jobs/…” part." Signed-off-by: eduarrrd <eduarrrd@users.noreply.github.com>
This commit is contained in:
parent
c3fa5a74f1
commit
86e4b57547
|
@ -16,10 +16,10 @@
|
|||
// by using its methods, finally calling Add or Push, like this:
|
||||
//
|
||||
// // Easy case:
|
||||
// push.New("http://example.org/metrics", "my_job").Gatherer(myRegistry).Push()
|
||||
// push.New("http://example.org/", "my_job").Gatherer(myRegistry).Push()
|
||||
//
|
||||
// // Complex case:
|
||||
// push.New("http://example.org/metrics", "my_job").
|
||||
// push.New("http://example.org/", "my_job").
|
||||
// Collector(myCollector1).
|
||||
// Collector(myCollector2).
|
||||
// Grouping("zone", "xy").
|
||||
|
|
Loading…
Reference in New Issue