Déploiement Prometheus
docker run -d --rm -p 9090:9090 -v /root/prometheus/prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml --name prometheus bitnami/prometheus:latest
prometheus.yml
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- follow_redirects: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets: []
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
static_configs:
- targets:
- localhost:9090
Déploiement Grafana
docker run -d --rm --name=grafana -p 3000:3000 grafana/grafana
Ajouter notre prometheus
- url : http://127.0.0.1:3000
- user : admin
- password : admin