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

Telegraf helmchart: error parsing mqtt_consumer, adding parser failed: line 59: cannot unmarshal TOML table into []xpath.Config (need struct or map #641

Open
pbwur opened this issue May 2, 2024 · 0 comments

Comments

@pbwur
Copy link

pbwur commented May 2, 2024

Hi,

I'm trying to configure Telegraf using the values.yaml file. Part of the configuration is a [[inputs.mqtt_consumer.xpath]] block in the mqtt_consumer:

[[inputs.mqtt_consumer.xpath]]
timestamp = "/timestamp"
timestamp_format = "unix"
tag_selection = "/tags/"
field_selection = "/fields/
"

In the values.yaml file I translated this to:

xpath:
timestamp: "/timestamp"
timestamp_format: "unix"
tag_selection: "/tags/"
field_selection: "/fields/
"

Unfortunately this gives me the following error:

Telegraf helmchart: error parsing mqtt_consumer, adding parser failed: line 59: cannot unmarshal TOML table into []xpath.Config (need struct or map)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant