aboutsummaryrefslogtreecommitdiff
path: root/end-to-end-test.sh
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 /end-to-end-test.sh
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 'end-to-end-test.sh')
-rwxr-xr-xend-to-end-test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/end-to-end-test.sh b/end-to-end-test.sh
index e074556..f47fbb5 100755
--- a/end-to-end-test.sh
+++ b/end-to-end-test.sh
@@ -3,6 +3,7 @@
3set -euf -o pipefail 3set -euf -o pipefail
4 4
5collectors=$(cat << COLLECTORS 5collectors=$(cat << COLLECTORS
6 arp
6 buddyinfo 7 buddyinfo
7 conntrack 8 conntrack
8 diskstats 9 diskstats