Closed kurtbeil01 closed 2 years ago
@srebhan
After restart of telegraf service 1.21.0 it is working exactly one time,
Is this the same as #10678?
@powersj, thanks for this hint. Seems to be the same as #10678 or #10347
Got it working with follwing workaround!
1) Removed header line from csv Instead "SYSTEM";"RUNTIME";"ROWS" TD;23.6520979;107 we use now TD;23.6520979;107
2) Modified telegraf.conf , set csv_header_row_count to 0 and added csv_column_names Old csv_header_row_count = 1 New csv_header_row_count = 0 csv_column_names = ["SYSTEM","RUNTIME","ROWS"]
After those changes we no longer get the "parse float error strconv" error (tested with v 1.21.0 and 1.23.2)
So telegraf has a problem with the header line since version 1.21.0
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.21.0, Windows Server 2019
Docker
No response
Steps to reproduce
"SYSTEM";"RUNTIME";"ROWS" TD;23.6520979;107
Everthing was working without issue with telegraf v1.18. 1. After upgrading to telegraf 1.23.2 we were getting conversions errors. -> 2022-07-20T11:00:17Z E! [inputs.exec] Error in plugin: column type: parse float error strconv.ParseFloat: parsing "RUNTIME": invalid syntax
After further investingation we could narrow down this error. Last working telegraf version is 1.20.4. With telegraf 1.21.0 and any newer version we are getting this error. In the release notes of 1.21.0 we don't see any change which should affect inputs.exec, input.file or outputs.influxdb_v2.
One more interesting deatail which we faced during the investigation: After restart of telegraf service 1.21.0 it is working exactly one time, so one record is written to influx_v2 database. All further calls lead to errors "parse float error strconv".
Expected behavior
Every call of Powersehll script from inputs.exec with the latest telegraf version writes a record to influxdb_v2 without any converisons errors.
Actual behavior
First call of Powershell script after restart of telegraf 1.21.0 service from inputs.exec writes a dataset to influxdb_v2 without converisons error. All further call ending with conversion error.
Additional info
telegraf 1.21.0 was startet around 2022-07-20T10:52:00.000Z and at 10:56 one record was written to influxdb_v2. After that no more records were written an we see only conversion errors in the log.
influx data explorer output 0 exec_MSTR_PERF RUNTIME 7.6900282 2022-07-20T09:18:12.400Z 2022-07-20T12:18:12.400Z 2022-07-20T10:56:00.000Z WIKI-PROD-FRA TD
Error in log 2022-07-20T11:00:08Z E! [inputs.exec] Error in plugin: column type: parse float error strconv.ParseFloat: parsing "RUNTIME": invalid syntax