I want to import a csv file every 5 seconds to my influxdb. My input part of my config file looks as follows:
[[inputs.http]]
urls = ["http://192.168.X.X/getvar.csv"]
data_format = "csv"
csv_header_row_count = 1
csv_measurement_column = ["name"]
csv_tag_columns = ["id"]
csv_column_types = ["string","float","string","string","string","float"]
and the CSV has the following structure:
name | id | desc | type | access | val |
---|---|---|---|---|---|
CTA_B91_Temp | 1760 | B91 Temp. - Quelle (WP) Eintritt [°C] | REAL | RW | 6.03 |
However, the Docker log gives my this error:
E! [inputs.http] Error in plugin: [url=http://192.168.X.X/getvar.csv]: column type: parse float error strconv.ParseFloat: parsing "val": invalid syntax
and the influxdb data explorer this one:
unsupported input type for mean aggregate: string
Did I specify the csv_column_types wrong?