Prometheus is a 21st century monitoring solution. Which architected as asynchronous server-client scrape system.
Following instruction will setup a single node Prometheus cluster in docker-swarm, with node-exporter (to export system metrics)
- Clone monitoring repo
cd monitoring/ansible/
- fill inventory/hosts
- Installing Docker
- ansible-playbook -i inventory setup-dockerswarm.yml
- Setup Prometheus and grafana
- ansible-playbook -i inventory monitoring.yml
- Setting up grafana Data source
- goto http://{prometheus-machine-ip}:3000/ use user: admin and passowrd: defined in grafana_admin_password variable inthe monitoring yml
- click on settings -> Data sources -> select Prometheus
- url -> http://{prometheus-machine-ip}:9090/prometheus -> save and test. This will configure data source
- first Dashboard
- click on '+' sign -> import
- put
1860
inGrafana.com Dashboard
field and load - select datasource and import