You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a new user of both Go and Prometheus, I ran into some issues and tentatively believe the instructions for installing the prometheus/client_golang libraries are outdated as of Go 1.17 in... August 2021. It appears go get was deprecated outside of Go Modules, and requires the creation of a Go Module first. Please let me know if this impression is incorrect, or if a small PR to adjust the instructions might be welcome.
go get github.com/prometheus/client_golang/prometheus
go get github.com/prometheus/client_golang/prometheus/promauto
go get github.com/prometheus/client_golang/prometheus/promhttp
Potential solution: preface go get instructions with go mod init <module_name> and a link to Go Module documentation
The text was updated successfully, but these errors were encountered:
Hello,
As a new user of both Go and Prometheus, I ran into some issues and tentatively believe the instructions for installing the
prometheus/client_golang
libraries are outdated as of Go 1.17 in... August 2021. It appearsgo get
was deprecated outside of Go Modules, and requires the creation of a Go Module first. Please let me know if this impression is incorrect, or if a small PR to adjust the instructions might be welcome.Issue location: https://github.com/prometheus/docs/blob/main/content/docs/guides/go-application.md#installation
Issue contents:
Potential solution: preface
go get
instructions withgo mod init <module_name>
and a link to Go Module documentationThe text was updated successfully, but these errors were encountered: