collectd: Bind mount / into container

Even with *collectd* configured to report filesystem usage by device, it
still only reports filesystems that are mounted (in its namespace).
Thus, in order for it to report filesystems like `/boot`, these need to
be mounted in the container.
master
Dustin 2024-01-18 19:58:11 -06:00
parent d3338a125b
commit 714df85183
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Wants=network.target
[Container] [Container]
Image=git.pyrocufflink.net/containerimages/collectd:latest Image=git.pyrocufflink.net/containerimages/collectd:latest
Volume=/host:/host
Volume=/etc/collectd.d:/etc/collectd.d:ro Volume=/etc/collectd.d:/etc/collectd.d:ro
Volume=/run:/run:rw Volume=/run:/run:rw
Tmpfs=/tmp Tmpfs=/tmp