![]() Now have a look at the pods and the services again to see whether everything is running correctly: kubectl get all You can see whether the chart got installed correctly through helm ls Next, let's install the Helm Chart and pass in the values.yaml helm install mongodb-exporter prometheus-community/prometheus-mongodb-exporter -f values.yaml In this case, we are going to tell the helm chart the mongodb endpoint and then the additional label for the ServiceMonitor. We need to mondify the values provided in the values.yaml file as follows: mongodb:īasically, replace the values.yaml file created in the helm show command above with this file. ![]() Helm show values prometheus-community/prometheus-mongodb-exporter > values.yaml Next, we are going to add the Helm Mongo DB exporter helm repo add prometheus-community You can find a list of Prometheus exporters and integrations here: Now we want to tell Prometheus to monitor that endpoint - for this, we are going to use the following Helm Chart You can check that both are up and running through kubectl get all ![]() Use the follow to apply both to your cluster kubectl apply -f deployment.yaml Kubernetes Operators: Day 29 of #100DaysOfKubernetesįirst off, we are going to install the MongoDB deployment and the MongoDB service here is the YAML needed for this:.Prometheus on Kubernetes: Day 28 of #100DaysOfKubernetes.You can learn more about those concepts in my previous videos Think about it this way, Prometheus needs the help of and Exporter to know where MongoDB is in our cluster - like a pointer. However, MongoDB is one of those images that relies on an exporter for its service to be visible to Prometheus. Now, we want to install a MongoDB image on our cluster and tell Prometheus to monitor it's endpoint. You can take a look at a specific one as follows. Have a look at the CRDs that Prometheus uses through: kubectl get crd Like mentioned in the Previous video, operators, such as the Prometheus Operator rely on CRD. This label defines the ServiceMonitors that Prometheus is supposed to scrape. Look through the YAML file and you will find a label called: This will display the ServiceMonitor definition in pure YAML inside our terminal. Now have a look at one of those ServiceMonitors: kubectl get servicemonitor prometheus-kube-prometheus-grafana -o yaml You can get a list of all the ServiceMonitors through: kubectl get servicemonitor Prometheus uses ServiceMonitors to discover endpoints. Setup Prometheus Monitoring on Kubernetes using Helm and Prometheus Operator | Part 1Įxample Notes Install Prometheus Helm Chart with Operators etc.įirst off, we are going to follow the commands provided in the previous day - Day 28 - on Prometheus to have our Helm Chart with all the Prometheus related resources installed.ĭay 28: What is Prometheus Have a look at the Prometheus Resources to understand those better. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |