diff --git a/monitoring/docker-compose.yml b/monitoring/docker-compose.yml index d94dbdc..f0ed391 100644 --- a/monitoring/docker-compose.yml +++ b/monitoring/docker-compose.yml @@ -4,13 +4,16 @@ services: container_name: monitoring-prometheus restart: unless-stopped command: - - --config.file=/etc/prometheus/prometheus.yml + - --config.file=/etc/prometheus/config/prometheus.yml - --storage.tsdb.path=/prometheus - --storage.tsdb.retention.time=30d - --web.enable-lifecycle volumes: - - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - - ./prometheus/alerts.yml:/etc/prometheus/alerts.yml:ro + # Verzeichnis-Mount statt Einzeldatei: auf dem Unraid-FUSE-Share (/mnt/user) + # bricht ein Einzeldatei-Bind-Mount bei git/Komodo-Updates zu + # "Stale NFS file handle" (Inode-Wechsel) -> Reload laedt 0 Regeln, nur + # --force-recreate heilt. Directory-Inode ist stabil, Reload reicht wieder. + - ./prometheus:/etc/prometheus/config:ro - prometheus_data:/prometheus networks: - monitoring_net diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml index f1981da..7798b16 100644 --- a/monitoring/prometheus/prometheus.yml +++ b/monitoring/prometheus/prometheus.yml @@ -5,7 +5,7 @@ global: site: kallilabcore rule_files: - - /etc/prometheus/alerts.yml + - /etc/prometheus/config/alerts.yml alerting: alertmanagers: