hgomez / influxdb

InfluxDB Tools
19 stars 2 forks source link

Fix logic for adding commas between fields #9

Closed amotl closed 3 years ago

amotl commented 3 years ago

Dear Henri,

we found another issue when working with InfluxDB Fetcher on real-world databases.

There might be circumstances where there are multiple trailing null values at the end of the record. Those records had a trailing virg at the end of the lineprotocol line, rendering it defunct, like:

testdrive LoadAvg=19i,Temperature=23i, 1614632659000000000

This patch improves the situation.

With kind regards, Andreas.