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

21.09.2023

Personal Shadowsocks/XRay (XTLS) VPN-server with 3X-UI control panel

Hostkey has prepared a new service for its clients - server rental with pre-installed VPN 3X-UI. The new service is available for order on the company's website.

21.09.2023

Dell and Supermicro servers: authorization via LDAP

We describe how to integrate heterogeneous server platforms with centralized LDAP authentication.

04.08.2023

What is Distributed Storage? Types and Examples

In this article, we discuss distributed storage, a technology that stores data across multiple servers for increased availability, reliability, and scalability.

03.08.2023

Installing and configuring ESXi servers with ESXi-Foreman PXE Deploy

Let us explain how ESXi-Foreman PXE Deploy can simplify your virtualization efforts and save you time and effort when installing and configuring ESXi servers.

19.07.2023

Top 10 graphics cards for machine learning

How to choose the right graphics card and maximize the efficiency of processing large amounts of data and performing parallel computing.

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