Apr 23 2017

Exclude from Grafana ISPConfig mounted logs in Disk Space dashboard

I use Grafana to monitor a few servers. Because ISPConfig mounts the logs folders to other locations, the disk stats provided by the Prometheus Node Exporter include info that is not useful (at least for me).

This is how the Disk Space Graph is shown :

Mounted directory logs in ISPConfig should not be reported in Grafana Disk Space

In order to exclude the statistics for the logs folders, we need to use the collector.filesystem.ignored-mount-points option of the node exporter.

The default options when running the node exporter are to exclude the paths with the following regex : “^/(sys|proc|dev|host|etc)($|/)”

To exclude the /var/www/clients/clientX/webY/log we need to pass the option with the modified regex to the init script of the node exporter. We need to add var/www to the list of arguments and set the option when node exporter starts.

Because I am using an older version of Ubuntu without systemd, my init script for the node exporter is :

# Run node_exporter

start on startup

/usr/bin/node_exporter -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc|var/www)($|/)"
end script

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>