From f1b206016480fc198ab03db947f9b9bc57a9b28d Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 11 May 2026 12:20:28 +0000 Subject: [PATCH] host-metrics: bind-mount /run/udev for diskio udev lookups inputs.diskio (via gopsutil) reads /run/udev/data/b: to get per-device tags. Without the mount it falls back to the legacy /dev/.udev/db/block: path which doesn't exist on systemd hosts, producing one "stat /dev/.udev/db/block:..." warning per device per collection cycle. --- .../data/compose/docker-compose-host-metrics.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stack_orchestrator/data/compose/docker-compose-host-metrics.yml b/stack_orchestrator/data/compose/docker-compose-host-metrics.yml index cae490ae..6e219cc4 100644 --- a/stack_orchestrator/data/compose/docker-compose-host-metrics.yml +++ b/stack_orchestrator/data/compose/docker-compose-host-metrics.yml @@ -26,3 +26,8 @@ services: # Without this mount telegraf logs an "error reading /dev/" warning # per device per collection cycle. - /dev:/dev:ro + # /run/udev is where modern systemd stores the udev database that + # gopsutil consults for per-device tags. Without it telegraf falls + # back to the legacy /dev/.udev/db/... path which doesn't exist on + # systemd hosts, producing "stat /dev/.udev/db/block:..." warnings. + - /run/udev:/run/udev:ro