aboutsummaryrefslogtreecommitdiff
path: root/node_exporter.go
diff options
context:
space:
mode:
authorSam Kottler <skottler@users.noreply.github.com>2017-04-11 08:45:19 -0700
committerTobias Schmidt <ts@soundcloud.com>2017-04-11 17:45:19 +0200
commit6eafa51fa81b24b50dd819a47540db2db8948a39 (patch)
treebd18c7328c454a6cc59f92a3f605a38a3be2f3ef /node_exporter.go
parent84b65edb048d3f1e64b2d54a784154fb906e6cce (diff)
downloadprometheus_node_collector-6eafa51fa81b24b50dd819a47540db2db8948a39.tar.bz2
prometheus_node_collector-6eafa51fa81b24b50dd819a47540db2db8948a39.tar.xz
prometheus_node_collector-6eafa51fa81b24b50dd819a47540db2db8948a39.zip
Add ARP collector for Linux (#540)
* Implement commonalities and linux support for ARP collection * Add ARP collector to fixtures and run as part of e2e tests * Bubble up scanner errors * Use single return values where it makes sense * Add missing annotation * Move arp_common into arp_linux * Add license header to arp_linux.go * Address initial feedback * Use strings.Fields instead of strings.Split * Deal with scanner.Err() rather than throwing away errors * Check for scan errors in-line before interacting with the entries map * Don't interact with potentially empty text from scan * Check for scan errors outside the scan loop * Add comment about moving procfs parsing * Add more direct comment * Update initialism style to match go style guide * Put function args on the same line * Add TODO in front of comment about procfs extraction * Guard against strings.Fields returning an empty slice * Be more defensive about ARP table format and use upcase more broadly * Enable the ARP collector by default * Add ARP collector to the README * Remove 'entry'
Diffstat (limited to 'node_exporter.go')
-rw-r--r--node_exporter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_exporter.go b/node_exporter.go
index 4a7f88a..f6daa2d 100644
--- a/node_exporter.go
+++ b/node_exporter.go
@@ -32,7 +32,7 @@ import (
32) 32)
33 33
34const ( 34const (
35 defaultCollectors = "conntrack,cpu,diskstats,entropy,edac,exec,filefd,filesystem,hwmon,infiniband,loadavg,mdadm,meminfo,netdev,netstat,sockstat,stat,textfile,time,uname,vmstat,wifi,zfs" 35 defaultCollectors = "arp,conntrack,cpu,diskstats,entropy,edac,exec,filefd,filesystem,hwmon,infiniband,loadavg,mdadm,meminfo,netdev,netstat,sockstat,stat,textfile,time,uname,vmstat,wifi,zfs"
36) 36)
37 37
38var ( 38var (