hoonmin / influxdb-collectd-proxy

A very simple proxy between collectd and influxdb.
MIT License
72 stars 26 forks source link

annoying messages of json: unsupported value: NaN #15

Open sihara opened 10 years ago

sihara commented 10 years ago

After proxy started and data transfered from collected to influxdb through proxy, but it keeps to show up folloiwng annoying messages. 2014/10/21 17:56:21 failed to write series group to influxdb: json: unsupported value: NaN 2014/10/21 17:56:22 failed to write series group to influxdb: json: unsupported value: NaN 2014/10/21 17:56:23 failed to write series group to influxdb: json: unsupported value: NaN ... Any solutions to stop these messages?

hoonmin commented 10 years ago

Hi, @sihara ! I think I can working on it this weekend because I'm a little busy this week :-( Could you give me some informations on your environment? (like collectd config and types.db, ...)

Thank you!

yanfali commented 9 years ago

Hi @hoonmin I'm seeing these too. It would be great if the log would print out the actual value. I will take a look and see if I can figure out what the value actually is.

yanfali commented 9 years ago

Looking around, it seems this comes from the json/encoder:

https://github.com/golang/go/issues/3480

It is unable to handle null and so displays this message. At this time there isn't a resolution to this issue.

hoonmin commented 9 years ago

@yanfali Thank for your time inspect the issue. So we should find some workarounds for this...