You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pichlermarc sorry for this but we had many issues by replacing ${...} patterns as those are also used by different plugins for templating. Therefore, in #13451 we changed the shell-style environment variables to use a double-dollar sign to distinguish them from plugins' template-patterns.
Long story short, you should change interval = "${MY_TELEGRAF_INTERVAL}" to either interval = "$MY_TELEGRAF_INTERVAL" or interval = "$${MY_TELEGRAF_INTERVAL}".
@pichlermarc can you please test the binary in #13457 once CI finished the tests successfully? Please let me know if this fixes your issue!
That one works for our specific case; thank you @srebhan. 🙂
For us it's just a test that broke, but I was mostly worried that changes to the env var behavior could cause broken deployments for some people, which may have come unexpectedly in a semver minor bump. :)
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.28.0-1cfa48ee (git: master@1cfa48ee), Ubuntu 22.04
Docker
No response
Steps to reproduce
telegraf.conf
1.28.0-1cfa48ee (git: master@1cfa48ee)
MY_TELEGRAF_INTERVAL=10s ./telegraf --config telegraf.conf
Expected behavior
Telegraf starts up as it did with
1.27.0
and earlierActual behavior
Telegraf exits with
2023-06-16T09:02:51Z E! error loading config file telegraf.conf: error parsing [agent]: line 3: (config.AgentConfig.Interval) time: invalid duration "${MY_TELEGRAF_INTERVAL}"
Additional info
We initially discovered this in one of our tests, using an environment variable containing a URL for the Dynatrace output plugin.
The text was updated successfully, but these errors were encountered: