Skip to content
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

feat(agent): add /etc/telegraf/telegraf.d to default config locations #12608

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Feb 2, 2023

This will add /etc/telegraf/telegraf.d to the list of default
configuration locations to load from. 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. Currently, users need to specify
an empty /etc/telegraf/telegraf.conf file and specify they want to
include only a configuration directory.

fixes: #5656
fixes: #5571

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Feb 2, 2023
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
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Feb 3, 2023

Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip.
Downloads for additional architectures and packages are available below.

⚠️ This pull request increases the Telegraf binary size by 2.45 % for linux amd64 (new size: 165.7 MB, nightly size 161.7 MB)

📦 Click here to get additional PR build artifacts

Artifact URLs

DEB RPM TAR GZ ZIP
amd64.deb aarch64.rpm darwin_amd64.tar.gz windows_amd64.zip
arm64.deb armel.rpm darwin_arm64.tar.gz windows_arm64.zip
armel.deb armv6hl.rpm freebsd_amd64.tar.gz windows_i386.zip
armhf.deb i386.rpm freebsd_armv7.tar.gz
i386.deb ppc64le.rpm freebsd_i386.tar.gz
mips.deb riscv64.rpm linux_amd64.tar.gz
mipsel.deb s390x.rpm linux_arm64.tar.gz
ppc64el.deb x86_64.rpm linux_armel.tar.gz
riscv64.deb linux_armhf.tar.gz
s390x.deb linux_i386.tar.gz
linux_mips.tar.gz
linux_mipsel.tar.gz
linux_ppc64le.tar.gz
linux_riscv64.tar.gz
linux_s390x.tar.gz

@powersj powersj marked this pull request as ready for review February 6, 2023 20:20
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 6, 2023
Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @powersj!

@Hipska
Copy link
Contributor

Hipska commented Mar 14, 2023

Also fixes influxdata/influxdata-docker#568

@srebhan srebhan added this to the v1.26.0 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
3 participants