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