![]() In that case, run the below command as a workaround. ![]() # configuration to monitor the mongodb service by listening to mongodb exporterÄocker-compose command sometimes fails to bring up the prometheus service due to access permission to data folder. # configuration to monitor the elasticsearch service by listening to elasticsearch exporter # configuration to monitor the prometheus service itself. Read here to know more about Prometheus Configuration. Let's try to understand what is in the config/promethues.yaml file Installation For pre-built binaries please take a look at the releases. '-config.file=/prometheus/config/prometheus.yaml' Elasticsearch Exporter Prometheus exporter for various metrics about Elasticsearch, written in Go. # provide the mongodb service information for the exporter to work so i locally build it with the below name. # officially available as a container image. because as you know, the mongodb exporter is not # as you might have noticed, I'm using my personal repository. # setting up the mongodb exporter service. # depends_on is not a full safe approach. '-es.uri= # specify the depends on the elasticsearch so the docker brings up this service only after the elasticsearch is up. # pass the elasticsearch url as an input to the exporter The Prometheus operator supports an automated way of scraping data from the exporters by setting up a service monitor Kubernetes object. # We will use this information to configure the prometheus to listen. # elasticsearch prometheus exporter to monitor the elasticsearch service. # provide the network alias name to use it in the exporter # setting the environment variable discovery.type=single-node to bring up a single node elasticsearch Let's take a look at what is in the docker-compose.yml file ![]() So the Dockerfile inside the mongo-exporter folder downloads the latest code from the GitHub repository, build & makes the binary, bundles the final image to use. The mongo-exporter doesn't yet have an official Container Image built. I'm using docker-compose to deploy all the components in one-go. Learn more about exporters in Prometheus here. Let's go over the list of components that we need for the project. The project is not going to explain how to use or what is Prometheus and Grafana. I'm using Prometheus for monitoring and Grafana for visualization. The goal of the project is to show how to set up all the components needed to monitor Elasticsearch and MongoDB. Project to setup Prometheus Monitoring and Grafana to monitor Elasticsearch and MongoDB What is this project for? muon/mirror/kolla/ubuntu-binary-prometheus-elasticsearch-exporter. Docker-compose-prometheus-elasticsearch-mongo ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |