[ZBX-17638] Template Zabbix Linux by Prom - bad preprocessing for vfs.fs.free[node_exporter,"/"] Created: 2020 Apr 27  Updated: 2020 Apr 29  Resolved: 2020 Apr 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 4.4.7
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: MAILLIET François-Hugues Assignee: Zabbix Support Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7.7 node_exporter v0.18.1 Prometheus 2.17.2
Template Linux by Prom


Issue Links:
Duplicate
duplicates ZBX-17574 Template OS Linux by Prom : filters f... Confirmed

 Description   

Hi,

when I deploy the template Zabbix Linux by Prom, all items are ok, except the discovery of the / filesystem (it's ok for the /boot filesystem). I use node_exporter v0.18.1.

The message is:

Preprocessing failed for: # HELP go_gc_duration_seconds A summary of the GC invocation durations..# TYPE go_gc_duration_sec...
1. Failed: cannot apply Prometheus pattern: data extraction error: multiple matching metrics found:

node_filesystem_avail_bytes{device="/dev/mapper/centos_cosforma-root",fstype="xfs",mountpoint="/"} 4.307550208e+09
node_filesystem_avail_bytes{device="rootfs",fstype="rootfs",mountpoint="/"} 4.307550208e+09

I have chek the result of the node exporter and I have two entries for /. One with xfs type and one with rootfs type. Extract of the result:

...

HELP node_filesystem_avail_bytes Filesystem space available to non-root users in bytes.

TYPE node_filesystem_avail_bytes gauge
node_filesystem_avail_bytes{device="/dev/mapper/centos_cosforma-root",fstype="xfs",mountpoint="/"} 4.321697792e+09
node_filesystem_avail_bytes{device="/dev/sda1",fstype="xfs",mountpoint="/boot"} 2.90402304e+08
node_filesystem_avail_bytes{device="rootfs",fstype="rootfs",mountpoint="/"} 4.321697792e+09
node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run"} 5.1234816e+08
node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run/user/1000"} 1.03919616e+08

...

However, I checked the macro {$VFS.FS.FSTYPE.MATCHES} and the rootfs type does not appear: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$

If I look the preprocessing, I see only this information:

{_name_=~"^node_filesystem_avail(?:_bytes)?$", mountpoint="/"}

This filter is not enough



 Comments   
Comment by Eduards Matuls (Inactive) [ 2020 Apr 29 ]

Hello!

Thank you for reporting the issue. The problem is known and confirmed in ZBX-17574. Passed to development team. With that being said I will close this ticket as duplicate.

Regards,
Eduards

Generated at Sun Jun 07 03:43:23 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.