December 2017
Intermediate to advanced
404 pages
9h 28m
English
You can get the Prometheus client library using go get, as follows:
$ go get -u github.com/prometheus/client_golang
In case your application uses a dependency management tool (such as Glide, which we introduced in the preceding chapter), you will also probably want to declare this new dependency in your glide.yaml file and add a stable release to your application's vendor/ directory. To do all this in one step, simply run glide get instead of go get within your application directory:
$ glide get github.com/prometheus/client_golang $ glide update
For security reasons, we will expose our metrics API on a different TCP port than the event service's and booking service's REST APIs. Otherwise, ...
Read now
Unlock full access