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 <noreply@anthropic.com>
This commit is contained in:
@@ -4,13 +4,16 @@ services:
|
|||||||
container_name: monitoring-prometheus
|
container_name: monitoring-prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
- --config.file=/etc/prometheus/prometheus.yml
|
- --config.file=/etc/prometheus/config/prometheus.yml
|
||||||
- --storage.tsdb.path=/prometheus
|
- --storage.tsdb.path=/prometheus
|
||||||
- --storage.tsdb.retention.time=30d
|
- --storage.tsdb.retention.time=30d
|
||||||
- --web.enable-lifecycle
|
- --web.enable-lifecycle
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
# Verzeichnis-Mount statt Einzeldatei: auf dem Unraid-FUSE-Share (/mnt/user)
|
||||||
- ./prometheus/alerts.yml:/etc/prometheus/alerts.yml:ro
|
# 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
|
- prometheus_data:/prometheus
|
||||||
networks:
|
networks:
|
||||||
- monitoring_net
|
- monitoring_net
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ global:
|
|||||||
site: kallilabcore
|
site: kallilabcore
|
||||||
|
|
||||||
rule_files:
|
rule_files:
|
||||||
- /etc/prometheus/alerts.yml
|
- /etc/prometheus/config/alerts.yml
|
||||||
|
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
|
|||||||
Reference in New Issue
Block a user