fix(alloy): mount /run/udev for diskstats device properties

node-exporter's diskstats collector reads udev device properties from
/run/udev/data; without the mount it logs an error and drops those labels.
This commit is contained in:
tiennm99 committed 2026-10-06 16:50:22 +07:00
1 parent fc85962f45
commit feb6f035c8
2 files changed
+2

No files matched your search

+1
View File
@@ -131,6 +131,7 @@ the disclosure one.
| `/sys:/sys:ro` | node-exporter and cadvisor cgroups |
| `/:/rootfs:ro` | filesystem collector, via `rootfs_path` |
| `/dev/disk/:/dev/disk:ro` | node-exporter diskstats device labels |
| `/run/udev:/run/udev:ro` | node-exporter diskstats udev device properties (`/run/udev/data`) |
| `/var/lib/docker:ro` | cadvisor container metadata |
| `/var/log:/var/log:ro` | `loki.source.journal` and `loki.source.file` |
| `/etc/machine-id:ro` | Stable host id for the journal reader |
+1
View File
@@ -29,6 +29,7 @@ services:
- /sys:/sys:ro
- /:/rootfs:ro
- /dev/disk/:/dev/disk:ro
- /run/udev:/run/udev:ro
- /var/lib/docker/:/var/lib/docker:ro
- /var/log:/var/log:ro
- /etc/machine-id:/etc/machine-id:ro