One of the best ways to track long-term changes to your application is to use time-series data to monitor and alert us about important changes. Prometheus
(https://prometheus.io/) is a great way to perform this task. Prometheus is an open source time-series monitoring tool that utilizes a pull model via HTTP in order to drive monitoring and alerting. It is written in Go and has first-class client libraries for Go programs. The following steps show a very simple implementation of the Go Prometheus HTTP library:
- First, we instantiate our package and import our necessary libraries:
- Then, in our main function, we instantiate a new server and have it serve a NewServeMux that returns a Prometheus...