From d2fbf2414a88919212dea88dc17de037c7f308c8 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 25 Apr 2019 20:39:29 -0700 Subject: [PATCH] Add --section-filter to usage --- internal/usage.go | 3 +++ internal/usage_windows.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/internal/usage.go b/internal/usage.go index a49021b43..c783da3f4 100644 --- a/internal/usage.go +++ b/internal/usage.go @@ -25,6 +25,9 @@ The commands & flags are: --pprof-addr
pprof address to listen on, don't activate pprof if empty --processor-filter filter the processors to enable, separator is : --quiet run in quiet mode + --section-filter filter config sections to output, separator is : + Valid values are 'agent', 'global_tags', 'outputs', + 'processors', 'aggregators' and 'inputs' --sample-config print out full sample configuration --test gather metrics, print them out, and exit; processors, aggregators, and outputs are not run diff --git a/internal/usage_windows.go b/internal/usage_windows.go index 0bdd73026..70842f5ab 100644 --- a/internal/usage_windows.go +++ b/internal/usage_windows.go @@ -26,6 +26,9 @@ The commands & flags are: --processor-filter filter the processors to enable, separator is : --quiet run in quiet mode --sample-config print out full sample configuration + --section-filter filter config sections to output, separator is : + Valid values are 'agent', 'global_tags', 'outputs', + 'processors', 'aggregators' and 'inputs' --test gather metrics, print them out, and exit; processors, aggregators, and outputs are not run --usage print usage for a plugin, ie, 'telegraf --usage mysql'