Skip to content

Disk Metrics

Reporting Host Disk Metrics Within Container

When you run the collector as a container, it will only report the disk metrics for the partitions available to its own container.

To report on host partitions, you will have to volume-mount them into the container.

Our suggestion is to mount them into the /host directory of the container. Please refer to the options below.

Expose the entire host filesystem to the container

-v /:/host/rootfs:ro

Expose a specific mountpoint to the container

 -v /mnt/loop:/host/loop0:ro