Run ServiceInputs during test mode; add --test-wait option (#5911)

This commit is contained in:
Daniel Nelson
2019-06-14 12:06:25 -07:00
committed by GitHub
parent fec1b3ec19
commit de096428be
4 changed files with 56 additions and 31 deletions

View File

@@ -31,6 +31,8 @@ The commands & flags are:
--sample-config print out full sample configuration
--test gather metrics, print them out, and exit;
processors, aggregators, and outputs are not run
--test-wait wait up to this many seconds for service
inputs to complete in test mode
--usage <plugin> print usage for a plugin, ie, 'telegraf --usage mysql'
--version display the version and exit

View File

@@ -31,6 +31,8 @@ The commands & flags are:
'processors', 'aggregators' and 'inputs'
--test gather metrics, print them out, and exit;
processors, aggregators, and outputs are not run
--test-wait wait up to this many seconds for service
inputs to complete in test mode
--usage <plugin> print usage for a plugin, ie, 'telegraf --usage mysql'
--version display the version and exit