node_exporter/collector
Ben Kochie 3b3ef7357f
Silence missing netclass errors
* Handle no such file and permission denied errors.
* Reduce excessive error wrapping.

Fixes: https://github.com/prometheus/node_exporter/issues/1840

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-03-03 20:40:08 +01:00
..
fixtures Sanitize strings from /sys/class/power_supply 2021-03-03 18:05:51 +01:00
fixtures_bindmount/proc fix issue where rootfs path strips to the empty string (#1464) 2019-09-09 17:39:24 +02:00
fixtures_hidepid/proc Add fallback for missing /proc/1/mounts (#1172) 2018-11-30 14:01:55 +01:00
arp_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
bcache_linux.go bcache: fix typo 2021-01-25 13:50:16 +08:00
bonding_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
bonding_linux_test.go Rearrange fixtures to match "real" proc and sys. 2015-09-28 13:56:22 +00:00
boot_time_bsd.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
boot_time_openbsd_amd64.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
boot_time_solaris.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
btrfs_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
btrfs_linux_test.go Add Btrfs collector (#1512) 2020-02-19 15:48:51 +01:00
buddyinfo.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
collector.go new flag to disable all default collectors (#1460) 2020-02-20 11:03:33 +01:00
conntrack_linux.go Conntrack update: differentiate ErrNoData and other errors (#1323, #1723) 2020-08-26 14:35:39 +02:00
cpu_common.go Fix capitalization of CPU acronym throughout 2020-09-03 23:34:33 +02:00
cpu_darwin.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
cpu_dragonfly.go Fix capitalization of CPU acronym throughout 2020-09-03 23:34:33 +02:00
cpu_dragonfly_test.go Add test 2016-09-28 09:10:05 +02:00
cpu_freebsd.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
cpu_linux.go Downgrade CPU counter warnings 2020-10-01 12:41:15 +02:00
cpu_openbsd.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
cpu_openbsd_amd64.go move const values to iota plus code cleanup 2020-11-12 23:37:57 +01:00
cpu_solaris.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
cpufreq_linux.go Fix capitalization of CPU acronym throughout 2020-09-03 23:34:33 +02:00
cpufreq_solaris.go Fix capitalization of CPU acronym throughout 2020-09-03 23:34:33 +02:00
devstat_dragonfly.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
devstat_freebsd.c Add missing license headers 2017-01-05 06:18:34 +01:00
devstat_freebsd.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
devstat_freebsd.h Add missing license headers 2017-01-05 06:18:34 +01:00
diskstats_common.go Add diskstats collector for OpenBSD (#1250) 2019-02-06 11:36:22 +01:00
diskstats_darwin.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
diskstats_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
diskstats_linux_test.go Add new counters for flush requests in Linux 5.5 (#1548) 2019-11-25 13:16:15 -06:00
diskstats_openbsd.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
diskstats_openbsd_amd64.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
drbd_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
edac_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
entropy_linux.go Merge branch 'master' into entropy 2020-06-19 08:50:51 +03:00
exec_bsd.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
fibrechannel_linux.go change fc_host everywhere, update fixtures 2021-02-03 09:35:58 -05:00
filefd_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
filefd_linux_test.go Fix scanner usage without error handling 2017-02-28 16:04:25 -04:00
filesystem_bsd.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
filesystem_common.go collector/filesystem: fixing logging message 2020-11-12 15:27:33 +01:00
filesystem_freebsd.go filesystem_freebsd: Use bytesToString to get label values 2020-06-03 11:33:10 +02:00
filesystem_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
filesystem_linux_test.go Fix collectors' build tags 2020-06-12 10:26:30 +02:00
filesystem_openbsd_amd64.go remove openbsd amd64 cgo dependecies 2020-11-12 23:37:48 +01:00
helper.go helper: Add new bytesToString function and tests 2020-06-03 11:33:10 +02:00
helper_test.go helper_test: Fix copyright year 2020-06-03 11:33:10 +02:00
hwmon_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
infiniband_linux.go Add more IB counters 2020-11-12 09:35:13 -05:00
interrupts_common.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
interrupts_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
interrupts_linux_test.go Fix off by one in Linux interrupts collector (#721) 2017-11-02 09:59:46 +01:00
interrupts_openbsd.go fixed build 2020-11-12 23:37:56 +01:00
interrupts_openbsd_amd64.go move const values to iota plus code cleanup 2020-11-12 23:37:57 +01:00
ipvs_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
ipvs_linux_test.go Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
ksmd_linux.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
kvm_bsd.c Move FreeBSD/DragonflyBSD out of meminfo add kvm. (#547) 2018-01-04 12:23:26 +01:00
kvm_bsd.go Fix collectors' build tags 2020-06-12 10:26:30 +02:00
kvm_bsd.h Move FreeBSD/DragonflyBSD out of meminfo add kvm. (#547) 2018-01-04 12:23:26 +01:00
loadavg.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
loadavg_bsd.go Implement loadavg on all BSDs without cgo (#1584) 2020-02-18 14:14:35 +01:00
loadavg_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
loadavg_linux_test.go Add load5 and load15 to linux load metric 2015-10-17 13:07:39 +00:00
loadavg_solaris.go Add kstat-based Solaris metrics (#1197) 2019-01-12 13:33:56 +01:00
logind_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
logind_linux_test.go Fix all open go lint and vet issues 2017-02-28 13:05:38 -04:00
mdadm_linux.go Add check state for mdadm arrays via node_md_state metric (#1810) 2020-09-27 13:44:45 +02:00
meminfo.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
meminfo_darwin.go Fix up Darwin swap metrics 2020-02-19 15:52:47 +01:00
meminfo_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
meminfo_linux_test.go Make metrics better follow guidelines (#787) 2018-01-17 17:55:55 +01:00
meminfo_numa_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
meminfo_numa_linux_test.go Add Linux NUMA "numastat" metrics (#249) 2016-10-12 13:07:49 +02:00
meminfo_openbsd.go more build fixes 2020-11-12 23:37:56 +01:00
meminfo_openbsd_amd64.go move const values to iota plus code cleanup 2020-11-12 23:37:57 +01:00
memory_bsd.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
mountstats_linux.go Fix collectors' build tags 2020-06-12 10:26:30 +02:00
netclass_linux.go Silence missing netclass errors 2021-03-03 20:40:08 +01:00
netdev_bsd.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_common.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_darwin.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_filter.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_filter_test.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_linux.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_linux_test.go Move ignore/accept to new netDevFilter struct 2020-08-26 11:33:05 +02:00
netdev_openbsd.go Merge pull request #1826 from digineo/device-filter 2021-01-24 14:55:29 +01:00
netdev_openbsd_amd64.go Update netdev OpenBSD amd64 filter 2021-01-24 16:37:02 +01:00
netstat_linux.go Merge pull request #1733 from prometheus/superq/OutRsts 2020-06-18 17:12:45 +02:00
netstat_linux_test.go Adds metrics and tests for UDP receive and send buffer errors (#1534) 2020-02-19 14:41:40 +01:00
network_route_linux.go Fix network_route collector naming 2021-02-05 18:10:42 +01:00
nfs_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
nfsd_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
ntp.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
paths.go fix issue where rootfs path strips to the empty string (#1464) 2019-09-09 17:39:24 +02:00
paths_test.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
perf_linux.go Fix collectors' build tags 2020-06-12 10:26:30 +02:00
perf_linux_test.go Fix capitalization of CPU acronym throughout 2020-09-03 23:34:33 +02:00
powersupplyclass.go Sanitize strings from /sys/class/power_supply 2021-03-03 18:05:51 +01:00
pressure_linux.go Handle errors from disabled PSI subsystem 2021-03-03 11:02:28 +01:00
processes_linux.go PR feedback 2021-01-29 10:37:56 +01:00
processes_linux_test.go PR feedback 2021-01-29 10:37:56 +01:00
qdisc_linux.go Adding backlog/current queue length to qdisc collector 2020-06-04 12:13:07 -04:00
rapl_linux.go Fix rapl collector log noise 2021-02-05 18:16:17 +01:00
runit.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
schedstat_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
sockstat_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
softnet_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
stat_linux.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
supervisord.go feat: Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable 2021-01-27 18:09:52 +00:00
sysctl_bsd.go Fix collectors' build tags 2020-06-12 10:26:30 +02:00
sysctl_openbsd_amd64.go skip null bytes at the end of strings 2020-11-12 23:37:57 +01:00
systemd_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
systemd_linux_test.go Improve filter flag names. 2020-06-12 12:46:31 +02:00
tcpstat_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
tcpstat_linux_test.go Add gauges for allocated memory for queued UDP and TCP packages (#1503) 2020-03-31 10:46:32 +02:00
textfile.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
textfile_test.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
thermal_zone_linux.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
time.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
timex.go Handle EPERM for syscall in timex collector 2021-01-23 14:22:46 +01:00
udp_queues_linux.go udp_queues_linux.go: s/upd/udp/ in two error strings 2020-06-29 15:00:15 +02:00
uname.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
uname_bsd.go Extends uname collector to export on Darwin OS (#1433) 2019-08-03 12:32:43 +02:00
uname_linux.go collector: Implement uname collector for FreeBSD (#1239) 2019-02-05 17:39:24 +01:00
vmstat_linux.go switch to go-kit/log (#1575) 2019-12-31 17:19:37 +01:00
wifi_linux.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
xfs_linux.go Expose XFS inode statistics (#1869) (#1870) 2020-10-22 18:14:33 +02:00
zfs.go Merge pull request #1816 from liiling/master 2021-01-24 15:28:41 +01:00
zfs_freebsd.go Use Go 1.13 error features 2020-06-16 14:47:03 +02:00
zfs_linux.go Fix some noisy log lines 2021-02-10 16:16:54 +01:00
zfs_linux_test.go Expose zfs zpool state 2020-10-27 17:39:13 +03:00
zfs_solaris.go Fix ineffassign issue 2021-02-08 10:53:12 +08:00
zoneinfo_linux.go Add zoneinfo collector 2021-01-26 12:00:35 +01:00