From 86e4b57547003d7db929e4af29a7881559b1f408 Mon Sep 17 00:00:00 2001 From: eduarrrd Date: Sat, 17 Jun 2023 22:23:28 +0200 Subject: [PATCH] Fix top-level examples in push.go. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As mentioned in the func doc for New(): "However, do not include the “/metrics/jobs/…” part." Signed-off-by: eduarrrd --- prometheus/push/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/push/push.go b/prometheus/push/push.go index d3a3cef..7201f71 100644 --- a/prometheus/push/push.go +++ b/prometheus/push/push.go @@ -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").