-
Incident report
-
Resolution: Duplicate
-
Trivial
-
None
-
4.4.7
-
None
-
CentOS 7.7 node_exporter v0.18.1 Prometheus 2.17.2
Template Linux by Prom
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
- duplicates
-
ZBX-17574 Template OS Linux by Prom : filters for the "Mounted filesystem discovery" rule not working properly, breaking the items for the '/' filesystem
- Confirmed