Hands-on monitoring
So far, we've learned lots of principles to fabricate an impervious monitoring system in Kubernetes toward a robust service, and it's time to implement a pragmatic one. Because the vast majority of Kubernetes components expose their instrumented metrics on a conventional path in Prometheus format, we are free to use any monitoring tool with which we are acquainted as long as the tool understands the format. In this section, we'll set up an example with an open-source project, Prometheus (https://prometheus.io), which is a platform-independent monitoring tool. Its popularity in Kubernetes' ecosystem is for not only its powerfulness but also for its being backed by the Cloud Native Computing Foundation (https://www.cncf.io/), who also sponsors the Kubernetes project.
Meeting Prometheus
The Prometheus framework comprises several components, as illustrated in the following diagram:

As with all other monitoring frameworks, Prometheus relies on agents scraping out statistics from...