Compare commits

...

2 Commits

Author SHA1 Message Date
eduarrrd b71534a2b4
Merge 86e4b57547 into 769f6f63ec 2024-11-01 18:29:33 +01:00
eduarrrd 86e4b57547
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>
2023-06-17 22:23:28 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -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").