December 2017
Intermediate to advanced
316 pages
6h 58m
English
For any microservice, along with logging, instrumentation is vital. The metrics package of Go Kit records statistics about your service’s runtime behavior: counting the number of jobs processed, recording the duration of requests after they have finished, and so on. This is also a middleware that tampers the HTTP requests and collects metrics. To define a middleware, simply add one more struct, similar to the logging middleware. Metrics are useless unless we monitor. Prometheus is a metrics monitoring tool that can collect latency, number of requests for a given service, and so on. Prometheus scrapes the data from the metrics that Go Kit generates.
You can download the latest stable version of Prometheus ...
Read now
Unlock full access