Prometheus is a monitoring solution. It helps you store the time series data, like metrics of an application. You can view these metrices using Grafana that presents the information to you in graphical dashboard.
This section guides you on deploying Prometheus and Grafana. It also discusses how you can configure Prometheus to store Adeptia Connect metrices.
Deploying Prometheus and Grafana
Before you begin to deploy Prometheus and Grafana, make sure that you have met the following prerequisites.
Prerequisites
Kubernetes 1.16+
Helm 3+
To deploy Prometheus and Grafana, you need to follow the steps as given below.
Run the following command to add the Prometheus and Grafana helm chart from the Prometheus helm repository.
Update the Helm repository by running the following command.
helm repo update
Run the helm install command as shown below to deploy Prometheus and Grafana.
helm install <NAME OF THE RELEASE> prometheus-community/kube-prometheus-stack -n <NAMESPACE>
Creating Service Monitor yaml file
After you have deployed the Prometheus, you need to create a service monitor file. You can create the service monitor file by using the following content.