Skip to content

Disk Metrics

Reporting Host Disk Metrics within a Container

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

If you want reporting on host partitions, you will have to volume-mount them into the container.

It is recommended is to mount them into the /host directory of the container.

  • To mount the entire host filesystem to the container:

    -v /:/host/rootfs:ro
    
  • To mount a specific mountpoint to the container:

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