Node_Exporter/collector
Siavash Safi f3a7022602 Add collect[] parameter (#699)
* Add `collect[]` parameter

* Add TODo comment about staticcheck ignored

* Restore promhttp.HandlerOpts

* Log a warning and return HTTP error instead of failing

* Check collector existence and status, cleanups

* Fix warnings and error messages

* Don't panic, return error if collector registration failed

* Update README
2017-10-14 14:23:42 +02:00
..
fixtures Update vendoring (#685) 2017-10-05 16:20:47 +02:00
ganglia Fix all open go lint and vet issues 2017-02-28 13:05:38 -04:00
arp_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
bcache_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
bonding_linux_test.go Rearrange fixtures to match "real" proc and sys. 2015-09-28 13:56:22 +00:00
bonding_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
buddyinfo.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
collector.go Add collect[] parameter (#699) 2017-10-14 14:23:42 +02:00
conntrack_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
cpu_darwin.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
cpu_dragonfly_test.go Add test 2016-09-28 09:10:05 +02:00
cpu_dragonfly.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
cpu_freebsd.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
cpu_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
devstat_dragonfly.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
devstat_freebsd.c Add missing license headers 2017-01-05 06:18:34 +01:00
devstat_freebsd.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
devstat_freebsd.h Add missing license headers 2017-01-05 06:18:34 +01:00
diskstats_darwin.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
diskstats_linux_test.go Calculate Linux disk bytes read/written based on sector size (512B) 2015-12-27 22:00:02 +11:00
diskstats_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
drbd_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
edac_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
entropy_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
exec_bsd.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
filefd_linux_test.go Fix scanner usage without error handling 2017-02-28 16:04:25 -04:00
filefd_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
filesystem_bsd.go Fix lint issues on filesystem BSD implementation 2017-03-22 21:48:12 -03:00
filesystem_common.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
filesystem_freebsd.go Remove unnecessarily named return variables 2017-02-28 16:04:25 -04:00
filesystem_linux.go Fix export of stale device error metrics for unmounted filesystems 2017-03-22 21:48:18 -03:00
gmond.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
helper.go Delete unused code 2017-02-28 17:20:16 -04:00
hwmon_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
infiniband_linux_test.go Fix all open go lint and vet issues 2017-02-28 13:05:38 -04:00
infiniband_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
interrupts_common.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
interrupts_linux_test.go Rearrange fixtures to match "real" proc and sys. 2015-09-28 13:56:22 +00:00
interrupts_linux.go Fix scanner usage without error handling 2017-02-28 16:04:25 -04:00
interrupts_openbsd.go Convert remaining collectors to use ConstMetrics 2017-01-03 14:11:10 +01:00
ipvs_linux_test.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
ipvs_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
ksmd_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
loadavg_freebsd.go Fix build tags of loadavg collector 2017-07-20 15:13:58 -04:00
loadavg_linux_test.go Add load5 and load15 to linux load metric 2015-10-17 13:07:39 +00:00
loadavg_linux.go collector: support 1,5,15m load averages for all unices 2015-10-31 06:04:24 -07:00
loadavg_solaris.go Fix build tags of loadavg collector 2017-07-20 15:13:58 -04:00
loadavg_unix.go Explicitly check for the rc 3 in call to getloadavg(). Reorder logic. 2017-05-14 13:07:54 +02:00
loadavg.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
logind_linux_test.go Fix all open go lint and vet issues 2017-02-28 13:05:38 -04:00
logind_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
mdadm_linux_test.go Change raid0 status line regexp for mdadm collector (#619) 2017-07-20 17:04:33 +02:00
mdadm_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
megacli_test.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
megacli.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
meminfo_bsd.go Add exec_boot_time for freebsd, dragonfly 2017-04-21 10:23:19 -04:00
meminfo_darwin.go Add meminfo stats for Darwin 2017-01-03 11:22:46 +01:00
meminfo_linux_test.go Rearrange fixtures to match "real" proc and sys. 2015-09-28 13:56:22 +00:00
meminfo_linux.go Fix scanner usage without error handling 2017-02-28 16:04:25 -04:00
meminfo_numa_linux_test.go Add Linux NUMA "numastat" metrics (#249) 2016-10-12 13:07:49 +02:00
meminfo_numa_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
meminfo.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
mountstats_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
netdev_bsd_test.go Compile netdev on dragonfly (#314) 2016-09-27 21:44:13 +01:00
netdev_bsd.go Compile netdev on dragonfly (#314) 2016-09-27 21:44:13 +01:00
netdev_common.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
netdev_darwin.go Add netdev collector for darwin 2016-12-29 19:17:15 +01:00
netdev_linux_test.go Simplify code 2017-02-28 13:54:27 -04:00
netdev_linux.go Remove unnecessary conversions 2017-02-28 13:57:49 -04:00
netdev_openbsd.go Do a make format run. 2015-12-18 14:08:52 +00:00
netstat_linux_test.go Add parsing /proc/net/snmp6 file for netstat-linux (#615) 2017-07-08 20:16:35 +02:00
netstat_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
nfs_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
ntp.go Updated vendored ntp package (#681) 2017-10-04 08:33:49 +02:00
paths_test.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
paths.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
qdisc_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
runit.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
sockstat_linux_test.go Add parsing /proc/net/snmp6 file for netstat-linux (#615) 2017-07-08 20:16:35 +02:00
sockstat_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
stat_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
supervisord.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
sysctl_bsd.go sysctl_bsd.go: golint fixes. Typo fix. 2017-05-14 12:51:57 +02:00
systemd_linux_test.go Fix gofmt -s and spelling issues 2017-02-28 14:01:28 -04:00
systemd_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
tcpstat_linux_test.go Fix all open go lint and vet issues 2017-02-28 13:05:38 -04:00
tcpstat_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
textfile_test.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
textfile.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
time.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
timex.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
uname_linux_int8.go uname_linux: Build for 32bit MIPS too 2017-04-20 13:30:40 +02:00
uname_linux_uint8.go add s390x support 2016-08-24 08:06:04 -04:00
uname_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
vmstat_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
wifi_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
xfs_linux.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00
zfs_linux_test.go Use int64 throughout the ZFS collector. 2017-08-21 16:40:16 +00:00
zfs_linux.go Use int64 throughout the ZFS collector. 2017-08-21 16:40:16 +00:00
zfs.go Replace --collectors.enabled with per-collector flags (#640) 2017-09-28 15:06:26 +02:00