# PIHA-specific override for node_exporter. # # WHY: KB module 5 phase 3 step 5 (kb/phases/kb-m5-faza3.md §7.2) needs the # textfile collector so kb-ingest's systemd timer can publish # kb_ingest_last_success_timestamp / kb_ingest_last_exit_code / kb_ingest_embed_backlog # etc. for fleet-prometheus to scrape and alert on. # # NO NEW MOUNT: the base compose already binds `/:/host:ro,rslave` — the textfile # directory is read through that existing mount, not a new volume. Command lists are # replaced wholesale by Compose overrides (not merged), so both flags are restated here. services: node_exporter: command: - '--path.rootfs=/host' - '--collector.textfile.directory=/host/opt/homelab/state/node-exporter'