Enabling Kubernetes monitoring using Prometheus and Grafana
Success in keeping your Kubernetes applications healthy and performant depends on different factors; one of those is having a robust, reliable environment. Here, monitoring tools like Prometheus and Grafana can help. Prometheus works behind the scenes; it gathers and stores valuable metrics about your Kubernetes cluster. Grafana visualizes this treasure trove of data, presenting it in an understandable format for you to gain deep insight into the health and behavior of your applications and infrastructure.
The following figure shows the high-level architecture of Prometheus components. (It’s an official reference.)
Figure 14.9: Architecture of Prometheus and some of its ecosystem components (Source: https://prometheus.io/docs/introduction/overview/)
Traditional deployments, say, of monitoring stacks comprising Prometheus and Grafana, are pretty cumbersome. Writing several YAML manifests by hand, with...