From 714df851831e823e31ac371d73492b80c791ba58 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 18 Jan 2024 19:58:11 -0600 Subject: [PATCH] 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. --- templates/collectd/collectd.container | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/collectd/collectd.container b/templates/collectd/collectd.container index e257c45..16d1062 100644 --- a/templates/collectd/collectd.container +++ b/templates/collectd/collectd.container @@ -6,6 +6,7 @@ Wants=network.target [Container] Image=git.pyrocufflink.net/containerimages/collectd:latest +Volume=/host:/host Volume=/etc/collectd.d:/etc/collectd.d:ro Volume=/run:/run:rw Tmpfs=/tmp