This repository provides a simple and comprehensive monitoring stack using Prometheus, Zabbix, and Grafana. The stack is integrated and managed using Ansible and Docker. Below you will find the steps to set up and configure the monitoring stack, as well as additional resources for integration and usage.
- Basic knowledge of Ansible and Docker
- Docker and Docker Compose installed on your server
Follow these steps to set up the monitoring stack on your server:
-
Clone the repository:
git clone https://github.com/dubuntu13/monitoring-stack-zbx-pro-grf cd monitoring-stack-zbx-pro-grf/monitoring_build
-
Build and run the Docker containers:
sudo docker-compose up -d
This will take a few minutes to download all images and build the containers.
-
Verify the containers:
docker ps
Ensure all containers are running correctly. Once they are up, you should be able to access the UIs for Prometheus, Zabbix, and Grafana.
- Integrate Zabbix with Grafana: Follow the instructions here.
- Integrate Prometheus with Grafana: Follow the instructions here.
Note: After the first time you start the containers, comment out the Grafana plugin command to prevent it from running each time you start the containers.
The ./ansible
directory contains playbooks to install Zabbix-Agent, Pushgateway, and Node_exporter on your production environment. These playbooks are kept up-to-date and compatible with the project.
- Prometheus:
http://<your-server-ip>:9090
- Zabbix:
http://<your-server-ip>:10051
- Grafana:
http://<your-server-ip>:3000
To stop the stack:
sudo docker-compose down
The ./ansible
directory contains playbooks to install Zabbix-Agent, Pushgateway, and Node_exporter on your production environment. These playbooks are kept up-to-date and compatible with the project.