Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prometheus/push/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// push.New("http://example.org/", "my_job").Gatherer(myRegistry).Push()
// push.New("http://pushgateway.example.org", "my_job").Gatherer(myRegistry).Push()

//
// // Complex case:
// push.New("http://example.org/metrics", "my_job").
// push.New("http://example.org/", "my_job").
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// push.New("http://example.org/", "my_job").
// push.New("http://pushgateway.example.org", "my_job").

// Collector(myCollector1).
// Collector(myCollector2).
// Grouping("zone", "xy").
Expand Down