influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
233 stars 330 forks source link

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 6 months ago

pbwur commented 6 months ago

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)