Build:
docker build -t zig-disk-exporter .Run:
docker run -d \
--name zig-disk-exporter \
--restart unless-stopped \
-p 9108:9108 \
-v /:/host:ro,rslave \
--pid host \
zig-disk-exporterMetrics:
curl http://localhost:9108/metricsPrometheus scrape config:
scrape_configs:
- job_name: zig_disk_exporter
static_configs:
- targets: ["localhost:9108"]