-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a default location for the --config-directory if unset #5656
Comments
You can of course run the container with I think this really boils down to deciding if the |
According to #5703, this has been "put it on ice until we have time to revamp the config loading in depth." |
Hi Guys, It seems, by default, the /etc/telegraf/telegraf.d/*.conf files are not picked up by the official telegraf docker image, only the /etc/telegraf/telegraf.conf file? Is there anyway (for example an environment variable configured for the container) to get the telegraf service inside the docker image/container to load the .conf files from /etc/telegraf/telegraf.d/ in addition to the standard /etc/telegraf/telegraf.conf file? Thanks! |
You can run the container with |
For anyone else who comes across this while trying to use the
|
Sorry, probably me being stupid but could someone please show an examaple of what the |
Here it is including volume mount options:
|
Explicitly specifying
So it is a little unexpected that |
this is a duplicate to influxdata/influxdata-docker#568, where also people have voted ;) |
This will add /etc/telegraf/telegraf.d to the list of default configuration locations to load from. Currently, users need to specify an empty /etc/telegraf/telegraf.conf file and specify they want to include the configuraiton directory outside of the RPM and DEB. A common use case is for Docker where users want to upload an entire directory of configurations and run telegraf. Right now they have to add a custom launch command, when in reality we should include this directory by default. This also means that /etc/telegraf/telegraf.conf can be ommitted as well. fixes: influxdata#5656
This will add /etc/telegraf/telegraf.d to the list of default configuration locations to load from. Currently, users need to specify an empty /etc/telegraf/telegraf.conf file and specify they want to include the configuraiton directory outside of the RPM and DEB. A common use case is for Docker where users want to upload an entire directory of configurations and run telegraf. Right now they have to add a custom launch command, when in reality we should include this directory by default. This also means that the --config option can be omitted from the CLI if a user is only using --config-directory. fixes: influxdata#5656 fixes: influxdata#5571
Feature Request
Would like an option to use --config-directory in docker rather than one telegraf.conf
Proposal:
Map host/container directory and default config will be stored here and --config-directory used.
Current behavior:
defaults to /etc/telegraf/telegraf.conf
Desired behavior:
Use case: [Why is this important (helps with prioritizing requests)]
allows for cleaner management of plugins and other services
The text was updated successfully, but these errors were encountered: