/mountpoint_exporter

A simple exporter that exports Prometheus-formatted telemetry of mountpoints on your system

Mountpoint exporter

This is a very simple application that runs as a server (on the designated host address and port, see --help) and provides mount point info.

It is designed to solve the yet-unsolved problem of filtering out bind mounts exposed in issue prometheus/node_exporter#600 .

Every device mounted more than once will have a label is_bind set to yes in the metric corresponding to that mount. With that, you can do the following:

node_filesystem_avail_bytes{instance="mytarget:9100"}
* on(instance, mountpoint) group_left(is_bind)
mountpoint_info{is_bind="no"}

and filter out all mountpoints that are bind mounted.

Installation

Run make rpm to make an installable RPM for your Fedora or Red Hat system.

The file /etc/default/mountpoint_exporter can have command line arguments to configure the behavior of the package.