# Monitoring (Prometheus + Grafana + postgres-exporter)

Prometheus-config staat in deze map. **Grafana-image** en dashboards bouw je vanuit [homelab-command](http://192.168.1.211:3000/mo/homelab-command):

```bash
cd /volume1/homes/mo/homelab-command
export PG_PASSWORD='...'
export GRAFANA_ADMIN_PASSWORD='...'
docker build -f Dockerfile.grafana -t grafana-homelab:latest .
docker compose -f docker-compose.grafana.yml up -d
# of: sh scripts/recreate_monitoring_docker.sh
```

Na start: `docker network create homelab-monitor` en verbind postgres-homelab, neo4j, prometheus, exporter, grafana.

Mesh (NATS + normalizer): `docker compose -f docker-compose.mesh.yml --env-file .env up -d` in homelab-command.
