mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-30 07:59:53 -08:00
Re-arrange collectors list in end-to-end test
Reduce merge conflicts by breaking up the list into a multi-line string.
This commit is contained in:
parent
92488e8693
commit
45c0d38ce0
|
@ -2,6 +2,24 @@
|
||||||
|
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
|
collectors=$(cat << COLLECTORS
|
||||||
|
conntrack
|
||||||
|
diskstats
|
||||||
|
entropy
|
||||||
|
filefd
|
||||||
|
loadavg
|
||||||
|
mdadm
|
||||||
|
meminfo
|
||||||
|
netdev
|
||||||
|
netstat
|
||||||
|
sockstat
|
||||||
|
stat
|
||||||
|
textfile
|
||||||
|
bonding
|
||||||
|
megacli
|
||||||
|
COLLECTORS
|
||||||
|
)
|
||||||
|
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
|
|
||||||
port="$((10000 + (RANDOM % 10000)))"
|
port="$((10000 + (RANDOM % 10000)))"
|
||||||
|
@ -42,7 +60,7 @@ fi
|
||||||
./node_exporter \
|
./node_exporter \
|
||||||
-collector.procfs="collector/fixtures/proc" \
|
-collector.procfs="collector/fixtures/proc" \
|
||||||
-collector.sysfs="collector/fixtures/sys" \
|
-collector.sysfs="collector/fixtures/sys" \
|
||||||
-collectors.enabled="conntrack,diskstats,entropy,filefd,loadavg,mdadm,meminfo,netdev,netstat,sockstat,stat,textfile,bonding,megacli" \
|
-collectors.enabled="$(echo ${collectors} | tr ' ' ',')" \
|
||||||
-collector.textfile.directory="collector/fixtures/textfile/two_metric_files/" \
|
-collector.textfile.directory="collector/fixtures/textfile/two_metric_files/" \
|
||||||
-collector.megacli.command="collector/fixtures/megacli" \
|
-collector.megacli.command="collector/fixtures/megacli" \
|
||||||
-web.listen-address "127.0.0.1:${port}" \
|
-web.listen-address "127.0.0.1:${port}" \
|
||||||
|
|
Loading…
Reference in a new issue