Skip to content

docs: fix outdated go get link and handler wording in Go guide - #3175

Open
hnrydvd wants to merge 1 commit into
prometheus:mainfrom
hnrydvd:docs/go-application-guide-modules
Open

hnrydvd wants to merge 1 commit into
prometheus:mainfrom
hnrydvd:docs/go-application-guide-modules

Conversation

@hnrydvd

@hnrydvd hnrydvd commented Nov 1, 2026

Copy link
Copy Markdown

@RichiH, for docs

Fixes the outdated go get link in the Go guide and makes the prose match the code.

The installation step linked to a pre-modules article about the go
command. Point it at the module-aware go get reference instead, as
suggested by machine424 in the review of prometheus#2563.

Also make the prose match the code on the page: both examples use
promhttp.HandlerFor with a custom registry, not promhttp.Handler; the
first example exposes Go and process metrics; and the second example
exposes only its custom counter.

Refs prometheus#2556

Assisted-by: Claude Opus 5.5
Signed-off-by: hd <63141252+hnrydvd@users.noreply.github.com>
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.

1 participant