# Quadlet unit: cadvisor (rootless, boot-persistent) — DANKSERVER. # # Install path on dankserver: ~/.config/containers/systemd/cadvisor.container # Unit name: cadvisor.service (container name: cadvisor) # # The Dankserver twin of dankclaw/observability/quadlet/cadvisor.container. # Same rootless shape, same --cgroupns=host requirement (see that file for the # full story), only the LAN address differs: this host publishes on # 192.168.0.235:8080 so Prometheus on Dankclaw can scrape it over the real # network (cross-host, so the host.containers.internal trick does not apply). # It reports the media/library stack (romm, plex, jellyfin, copyparty, calibre, # tautulli) by their quadlet unit names via the cgroup path. [Unit] Description=cAdvisor container metrics (Dankserver) After=network-online.target Wants=network-online.target [Container] ContainerName=cadvisor Image=gcr.io/cadvisor/cadvisor:v0.49.1 PodmanArgs=--pid=host --cgroupns=host PublishPort=127.0.0.1:8080:8080 PublishPort=192.168.0.235:8080:8080 Volume=/sys:/sys:ro Volume=/:/rootfs:ro Exec=--housekeeping_interval=30s HealthCmd=wget --spider -q http://localhost:8080/healthz HealthInterval=30s HealthTimeout=10s HealthRetries=3 HealthStartPeriod=40s [Service] Restart=always RestartSec=10 [Install] WantedBy=default.target