influxdata/telegraf

feat: Support YAML as format for the config file

Open

#16,910 建立於 2025年4月30日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)Go (4,161 fork)batch import
area/configurationfeature requesthelp wantedsize/l

倉庫指標

Star
 (9,892 star)
PR 合併指標
 (平均合併 2天 12小時) (30 天內合併 136 個 PR)

描述

Use Case

Hi,

we are doing a lot of our configuration using YAML (since we're using Kubernetes), and we would like it to be possible to also use YAML as a file format for the Telegraf config file.

I know there is a large amount of dependencies on TOML, so this might be difficult/a lot of work.

Possible way to implement this, might be to use Viper for the configuration loading and Cobra for the commands https://github.com/spf13/viper https://github.com/spf13/cobra

Expected behavior

Possible to use YAML for the config file.

Actual behavior

Only TOML is supported/

Additional info

No response

貢獻者指南