I just checked and it works for me in either case. Double check that those environment variables are set when running without --test, don’t forget that if it is running as a service it will have a different environment.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Telegraf not able to use system variables in hostname | 4 | 4283 | March 30, 2018 | |
IP Adress as Tag in Telegraf | 1 | 1274 | February 17, 2023 | |
Dynamic Tags in Telegraf | 4 | 1491 | August 30, 2019 | |
Comma-separated list of hostnames in Variable - No results except for default host | 3 | 1272 | May 25, 2021 | |
Intended behaviour on tagging - Ref. Commit #1056 | 2 | 782 | January 30, 2018 |