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

31.10.2022

Monitoring Linux Services with Prometheus

Monitoring services and implementing an alert system on Linux servers with Prometheus.

31.10.2022

Using Prometheus + Alertmanager + Node Exporter to monitor a company's geo-distributed infrastructure.

How to implement an effective monitoring system to track equipment operation and quickly detect server failures.

17.10.2022

Migrating Virtual Servers to oVirt

Develop and apply a convenient scheme for transferring servers from the old oVirt Engine 4.2 infrastructure to the new oVirt Engine 4.5 infrastructure.

11.10.2022

Wazuh from the point of view of a Windows Administrator

How to choose a solution that will ensure a stable file configuration on servers and reliable alerts in event these files change.

09.10.2022

ELK-RabbitMQ Architecture - log management for a large IT infrastructure.

How to use the AMQP RabbitMQ broker to create a fault-tolerant architecture with minimal loss of log data during failures.

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