Prometheus¶
Accessible sur http://NAS:9091 (pas de sous-domaine public).
Configuration¶
# prometheus/prometheus.yml
scrape_configs:
- job_name: 'perfshop-monitoring'
static_configs:
- targets: ['perfshop-monitoring:3001']
scrape_interval: 15s
- job_name: 'perfshop-backend'
static_configs:
- targets: ['perfshop-app:8080']
metrics_path: '/actuator/prometheus'
scrape_interval: 10s
Rétention¶
Par défaut : 15 jours. Configurable via --storage.tsdb.retention.time=30d
dans le docker-compose.