inputs.exec
, inputs.execd
: add an option to pass a custom environment to their child process
#9281
Labels
area/exec
area/execd
Issues related to execd or plugins that would be better suited to be used through execd
feature request
Requests for new plugin and for new features to existing plugins
Feature Request
Proposal:
Add an option in
inputs.exec
andinputs.execd
to pass custom environment variables to their child process.Current behavior:
Currently, if you want to pass some values to the child process, you can only use the command line parameters or the whole environment of Telegraf.
Desired behavior:
For
inputs.execd
, there is always a single command so we could have an option like this:Use case:
This can be useful to easily customize the child process behavior without having a separate configuration file and not display this information in the command line (e.g. for credentials)
The text was updated successfully, but these errors were encountered: