Prometheus has an official Go client library that you can use to instrument Go applications. In this guide, we'll create a simple Go application that exposes Prometheus metrics via HTTP. Installation You can install the prometheus, promauto, and promhttp libraries necessary for the guide using go get: go get github.com/prometheus/client_golang/prometheus go get github.com/prometheus/client_golang/
![Instrumenting a Go application | Prometheus](https://cdn-ak-scissors.b.st-hatena.com/image/square/d4faed05a49c5712538b7f928a0ce386b09bac2e/height=288;version=1;width=512/https%3A%2F%2Fprometheus.io%2Fassets%2Ffavicons%2Fandroid-chrome-192x192.png)