In this section, we will deploy Prometheus and Grafana on our Kubernetes cluster. You will learn how to monitor a Kubernetes service with Prometheus and use Grafana dashboards to visualize cluster and application metrics.
Clone the k8sdevopscookbook/src repository to your workstation to use manifest files in the chapter8 directory:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd /src/chapter8
Make sure you have a Kubernetes cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is further divided into the following subsections to make the process easier:
- Deploying Prometheus Operator using Helm charts
- Monitoring metrics using Grafana dashboards
- Adding a Grafana dashboard to monitor applications
Deploying Prometheus using Helm charts
Prometheus is a popular open source solution for event monitoring and alerting. Prometheus records real-time metrics in a time...