Hello,q I seem to be having some troubling getting NE to ignore a few devices 'sr0/sda[1-3]. I've tried multiple things to try and get this work, exact for manually telling it to ignore sr0|sda1|sda2|sda3 etc. When using the below command. node_exporter --web.listen-address=0.0.0.0:9100 --web.max-requests=16 -- collector.processes
It does not ignore sda[1-3] I know sr* is not part of the standard regex they use. But this standard regex doesn't appear to work with systemd because the \\d chars are removed from systemd. /usr/sbin/node_exporter --web.listen-address=0.0.0.0:9100 --web.max-requests =16 --collector.processes --collector.diskstats.ignored-devices=^(sr|ram| loop|fd|(h|s|v|xv)d[a-z]|nvmed+nd+p)d+$ --collector.filesystem.ignored-mount -points=^/(dev|proc|sys|var/lib/docker/.+)($|/) --collector.filesystem. ignored-fs-types=^(rootfs|tmpfs|autofs|binfmt_misc|bpf|cgroup2?|configfs| debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|nsfs|overlay|proc|procfs| pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$ The issue appears to be around the char '\'. I believe systemd removes these chars and thus you need to encode them from my googling around with systemd-escape which I did shown below, but it still doesn't appear to work.. [root@linda058 20:16 compose_files]$ systemd-escape '^(sr|ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$' \x5e\x28sr\x7cram\x7cloop\x7cfd\x7c\x28h\x7cs\x7cv\x7cxv\x29d\x5ba\x2dz\x5d\x7cnvme\x5c\x5cd\x2bn\x5c\x5cd\x2bp\x29\x5c\x5cd\x2b\x24 [root@linda058 20:18 compose_files]$ systemd-escape -u '\x5e\x28sr\x7cram\x7cloop\x7cfd\x7c\x28h\x7cs\x7cv\x7cxv\x29d\x5ba\x2dz\x5d\x7cnvme\x5c\x5cd\x2bn\x5c\x5cd\x2bp\x29\x5c\x5cd\x2b\x24' ^(sr|ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$ -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9f85f96e-14c0-4a43-a622-449b4aee6c68%40googlegroups.com.

