11.11.2022

How to ignore tmpfs, udf, iso9660 when dealing with filesystem metrics

server one
HOSTKEY
Rent dedicated and virtual servers with instant deployment in reliable TIER III class data centers in the Netherlands and the USA. Free protection against DDoS attacks included, and your server will be ready for work in as little as 15 minutes. 24/7 Customer Support.

Author: Senior Devops. Hostkey Lead Infrastructure Specialist Nikita Zubarev

In one of the previous articles, we talked about our experience in deploying operating systems through Foreman. Our approach allows us to solve the problems of hardware support and software updates in the image and simplifies the server administration procedure; however, it imposes a number of issues when working with Windows OS - during installation, mounting occurs via autofs (Universal Disk Format (UDF)) on foreman-repo servers. It looks like this:

The default configuration of Node Exporter displays all available file systems:

You should ignore such file systems as tmpfs, autofs, udf, iso9660, etc., because otherwise the monitoring system will flood you with a large number of alerts that do not contain any actionable information, and thus significantly reduce your efficiency when monitoring server hardware.

This problem can be easily solved by adding the collector.filesystem.ignored-fs-types parameter to the exporter configuration.

By default, $NODE_EXPORTER_OPTS is loaded from a file:
# /etc/default/node_exporter

We add:

NODE_EXPORTER_OPTS="--collector.filesystem.ignored-fs-types="^(tmpfs|autofs|udf|iso9660)$""

After restarting the exporter, the parameters will no longer be displayed, so the metric will not be taken into account. This approach can significantly reduce the resources consumed by the monitoring system and simplify the equipment management procedure as a whole, as well as facilitate the work of your engineers.

Rent dedicated and virtual servers with instant deployment in reliable TIER III class data centers in the Netherlands and the USA. Free protection against DDoS attacks included, and your server will be ready for work in as little as 15 minutes. 24/7 Customer Support.

Other articles

01.03.2023

Creating a Single sign-on service with reminders for users

How to make a simple and reliable password change system and help users remember to change their password timely.

13.02.2023

Which graphics card is better for business - RTX 4090 or server RTX A5000?

We shall compare the new gaming graphics card from Nvidia - the GeForce RTX 4090 and the powerful RTX A5000 server card.

06.02.2023

Migrating virtual servers from oVirt to VMware

We develop and apply a convenient scheme for quickly transferring servers from oVirt to VMware.

13.01.2023

Collecting logs using Go

How to solve some issues with collecting logs using Go

05.12.2022

WindowsPE Live-CD in Jenkins/Foreman Infrastructure

Building a WindowsPE distribution in a Linux infrastructure, automating this process using Jenkins, and deploying MS Windows-based systems through this helper.

HOSTKEY Dedicated servers and cloud solutions Pre-configured and custom dedicated servers. AMD, Intel, GPU cards, Free DDoS protection amd 1Gbps unmetered port 30
4.3 67 67
Upload