Closed sspaink closed 1 year ago
The current behavior of --input-list
for example prints:
./telegraf --input-list
Available Input Plugins:
KNXListener
activemq
aerospike
aliyuncms
amd_rocm_smi
...
What would the new output look like, such that grep
would allow someone to filter on inputs?
I was hoping we would do something like:
# lists all plugins included in this binary, deprecated or not
telegraf list
# lists only inputs
telegraf list inputs
# list deprecated plugins
telegraf list deprecated
# or deprecated could be a flag
telegraf list inputs --deprecated
I'm not sure I'm a fan of having two list-*
subcommands that do things in the same domain of "listing plugins".
What about
> telegraf plugins
inputs.example
inputs.internal
...
> telegraf plugins --deprecated
processors.deprecated_plugin
Backwards compatibility is required
Related: https://github.com/influxdata/telegraf/issues/11316
Deprecate the flags
--deprecation-list, --input-list, --output-list
by addingDEPRECATED:
to theUsage
field for each. Then add a new commandlist
anddeprecated
.telegraf list-plugins
~ print all pluginstelegraf list-deprecations
~ print all deprecated plugins and settingstelegraf list-plugins | grep inputs.
telegraf list-deprecations | grep inputs.