Monitoring Stack: Prometheus, Exporters and Grafana
Alerting: Alertmanager
Web Interface: Traefik
-
Hardening OS
-
Install docker
-
Install docker-compose
-
Change and complate config files
Step1: chnage service config files:
tree monitoring
.
|-- README.md
|-- alertmanager
| `-- config.yml
|-- docker-compose.yml
|-- grafana-dashboard
| |-- docker-monitoring_rev1.json
| `-- node-exporter-full_rev16.json
`-- prometheus
|-- alerts
| |-- Alertmanager.rules
| `-- Prometheus.rules
`-- prometheus.yml
4 directories, 8 files
Step2: chnage DOMAIN on docker-comose file with your domain.
Step3: change alertmanager email notification config
**Step4:**check compose file and Run all services
docker-compose config
docker-compose up -d
Step5: Check compose services and view all services logs
docker-compose ps
docker-compose logs -f --tail 100
Step6: check and visit your domain service:
-
prometheus.DOMAIN: prometheus dashboard
-
web.DOMAIN: traefik2 dashboard
-
alert.DOMAIN: alertmanager dashboard
-
grafana.DOMAIN: grafana dashboard
Step7: config grafana service for view all metric on visualize dashboard