Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix top-level examples in push.go. #1298

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eduarrrd
Copy link

As mentioned in the func doc for New(): "However, do not include the “/metrics/jobs/…” part."

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>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Proposed more specific example URL, but you are right, thanks!

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

@stale
Copy link

stale bot commented Sep 17, 2023

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Sep 17, 2023
@bwplotka bwplotka marked this pull request as draft October 14, 2024 14:18
@stale stale bot removed the stale label Oct 14, 2024
@bwplotka
Copy link
Member

👋🏽 Moved to draft, since there are some comments to address, but otherwise it would be nice to have this! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants