From 80385c4560cb2fbcea94db9c54bdb9c9fab8deee Mon Sep 17 00:00:00 2001 From: Micha Date: Fri, 19 Jun 2026 10:20:35 +0200 Subject: [PATCH] monitoring: Prometheus-Config als Verzeichnis-Mount (FUSE-Stale-Handle-Fix) Einzeldatei-Bind-Mounts von alerts.yml/prometheus.yml brechen auf dem Unraid-FUSE-Share bei git/Komodo-Updates zu "Stale NFS file handle" (Inode-Wechsel) -> Config-Reload laedt 0 Regeln, nur --force-recreate heilt. Umgestellt auf stabilen Directory-Mount ./prometheus:/etc/prometheus/config:ro plus angepasste --config.file und rule_files. Kuenftig reicht ein Reload. Co-Authored-By: Claude Opus 4.8 --- monitoring/docker-compose.yml | 9 ++++++--- monitoring/prometheus/prometheus.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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: