fix: smartctl needs access to /dev closes #52 #59

Merged
fauno merged 3 commits from smartctl-dev into main 2026-11-05 18:33:32 +00:00
Owner

according to smartctl_exporter docs:

The smartctl_exporter can be run using local JSON data. The device names are pulled from actual devices in the machine while the data is redirected to the debug directory.

so the container needs access to the host /dev to enumerate disks

according to [smartctl_exporter docs](https://github.com/prometheus-community/smartctl_exporter#run-smartctl_exporter-using-json-data): > The smartctl_exporter can be run using local JSON data. **The device names are pulled from actual devices in the machine** while the data is redirected to the debug directory. so the container needs access to the host `/dev` to enumerate disks
fauno added 1 commit 2026-11-03 21:45:24 +00:00
CODEOWNERS rules requested review from monitoring-ng-maintainers 2026-11-03 21:45:24 +00:00
@@ -8,3 +8,3 @@
- "/dev:/dev:ro"
command:
- "--smartctl.fake-data"
- "--smartctl.interval=1h"
Owner

can you also include why we did this change in the description? (for paper trailing)

can you also include why we did this change in the description? (for paper trailing)
Author
Owner

done @ammaratef45 it wasn't needed because afaict the json files are read on every scrape

done @ammaratef45 it wasn't needed because afaict the json files are read on every scrape
fauno added 2 commits 2026-11-05 18:30:21 +00:00
fauno force-pushed smartctl-dev from 6950951d20 to 085992dab0 2026-11-05 18:30:21 +00:00 Compare
CODEOWNERS rules requested review from monitoring-ng-maintainers 2026-11-05 18:30:22 +00:00
fauno merged commit 400e0d71d1 into main 2026-11-05 18:33:32 +00:00
fauno deleted branch smartctl-dev 2026-11-05 18:33:32 +00:00
Sign in to join this conversation.