| Service | Port | URL | Description |
|---|---|---|---|
| Grafana | 3030 | http://localhost:3030 | Dashboards et visualisations (admin/admin) |
| Prometheus | 9090 | http://localhost:9090 | Collecte et stockage des métriques |
| Alertmanager | 9093 | http://localhost:9093 | Gestion et routage des alertes |
| Loki | 3100 | http://localhost:3100 | Agrégation des logs (API HTTP) |
Raison du changement :
| Service | Port | Usage |
|---|---|---|
| Next.js Frontend | 3000 | Application web principale |
| FastAPI Backend | 8080 | API REST backend |
| Grafana | 3030 | Monitoring et dashboards |
# Démarrer la stack d'observabilité
docker compose -f docker-compose.observability.yml up -d
# Vérifier que tous les services sont démarrés
docker compose -f docker-compose.observability.yml ps
# macOS/Linux
lsof -i :3030
lsof -i :9090
lsof -i :9093
lsof -i :3100
# Windows
netstat -ano | findstr :3030
netstat -ano | findstr :9090
netstat -ano | findstr :9093
netstat -ano | findstr :3100
# Grafana
curl http://localhost:3030/api/health
# Prometheus
curl http://localhost:9090/-/healthy
# Alertmanager
curl http://localhost:9093/-/healthy
# Loki
curl http://localhost:3100/ready
Si vous souhaitez utiliser un autre port pour Grafana, modifiez docker-compose.observability.yml :
grafana:
ports:
- "VOTRE_PORT:3000" # Format: "HOST_PORT:CONTAINER_PORT"
Note : Le port interne du conteneur reste 3000, seul le port exposĂ© sur lâhĂŽte change.
Si vous aviez déjà configuré Grafana sur le port 3000 :
docker compose -f docker-compose.observability.yml down
docker-compose.observability.yml a déjà été mis à jourbackend/index.html ont été mis à jourdocker compose -f docker-compose.observability.yml up -d