Telegraf 0.2.3 to 0.2.4 upgrade break system_uptime, due to the different type of value
After upgrade of Telegraf on CentOS 6 version 0.2.3 to 0.2.4 flushing to IndluxDB fails, as system_uptime cannot be written to DB anymore :
2015/12/11 11:01:39 ERROR: write failed: field type conflict: input field "value" on measurement "system_uptime" is type float64, already exists as type integer
So, it is back, I reported in the old bug (between 0.2.0 and 0.2.1 ) also.
Basically it then brake any flushing metrics to DB :
2015/12/11 11:12:56 ERROR: write failed: field type conflict: input field "value" on measurement "system_uptime" is type float64, already exists as type integer
2015/12/11 11:12:57 ERROR: write failed: field type conflict: input field "value" on measurement "system_uptime" is type float64, already exists as type integer
2015/12/11 11:12:58 ERROR: write failed: field type conflict: input field "value" on measurement "system_uptime" is type float64, already exists as type integer2015/12/11 11:12:58 FATAL: Write to output [influxdb] failed 3 times, dropping 270 metrics
2015/12/11 11:13:00 Gathered metrics, ({10s} interval), from 7 plugins in 28.891603ms
Same issue with a new deployment:
2015/12/10 17:27:20 ERROR: {"error":"write failed: field type conflict: input field \"value\" on measurement \"system_uptime\" is type float64, already exists as type integer"}
Most likely, related to #390
I'm very sorry for the inconvenience, but there is no way I can fix this without breaking someone. Users of Telegraf pre-0.2.3 will be broken if I change it back to an int.
Having it as an int in 0.2.3 was a mistake that was made when we switched from using gosigar to gopsutil.
Okay. Point taken. Now we just need somehow to convert existing data.