Greatly reduce the metrics vmstat returns by default.

Vmstat has over 100 fields, most of which are highly
detailed debug information. Trim this down to only
essential fields by default, configurable by flag.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
This commit is contained in:
Brian Brazil 2018-03-29 16:34:52 +01:00
commit 499c342fed
4 changed files with 156 additions and 4 deletions

View file

@ -32,6 +32,7 @@ enabled_collectors=$(cat << COLLECTORS
stat
textfile
bonding
vmstat
wifi
xfs
zfs
@ -42,7 +43,6 @@ disabled_collectors=$(cat << COLLECTORS
time
timex
uname
vmstat
COLLECTORS
)
cd "$(dirname $0)"
@ -148,4 +148,4 @@ get "127.0.0.1:${port}/metrics" | grep -E -v "${skip_re}" > "${tmpdir}/e2e-outpu
diff -u \
"${fixture}" \
"${tmpdir}/e2e-output.txt"
"${tmpdir}/e2e-output.txt"