-
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
Config file does not support valid comments within arrays #3642
Comments
The configuration file is a TOML file, you can find the specification here: https://github.com/toml-lang/toml I believe these should be allowed by the TOML format, and is a bug in the library we are using to parse the config file. I am planning to switch to the BurntSushi library soon which handles both of these examples correctly for #1598 #272 |
FYI, does not appear to work in as of telegraf 1.14 |
Just encountered this myself in telegraf 1.19.3 - according to the TOML spec comments in lists should be allowed. |
Guys, I am Go-illiterate so I apologise in advance for the report which can be just "this is how it works in Go, deal with it".
But it feels a bit weird that you cannot comment properly in potentially long lists like
templates
of asocket_listener
:telegraf 1.5.0
Interesting enough is the doc provides an example actually: https://github.com/influxdata/telegraf/blob/052e88ad5ea5fa5872fba8998f1bf819ce418acb/docs/DATA_FORMATS_INPUT.md
which does not work either:
where line 16 is this:
and removing a comment on previous line fixes it
The text was updated successfully, but these errors were encountered: