-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NaN values being saved in Whisper datafiles #17
Comments
to further illustrate, here's an example of the cpu data gathered from collectd. This data is replicated and pushed to two hosts, one runs go-carbon, and the other carbon-cache: with go-carbon gives the below two occurrences: while with carbon-cache no |
hello again @lomik i was able to achieve this by adding the below condition in if !math.IsNaN(r.Value) {
points[i] = &whisper.TimeSeriesPoint{Time: int(r.Timestamp), Value: r.Value}
} naturally, in the beginning I also had to define importing of |
We are experiencing the same bug in production. Pull #27 fixes it (with tests, too!). ❤️ |
hi @lomik , With reference to https://bugs.launchpad.net/graphite/+bug/867882
Somehow I'm finding my whisper files to contain
nan
, and while this is valid from a python JSON spec, it's breaking the Grafana javascript code which parses the JSON from graphite. And causes an error and does not plot graphs.Apparently carbon-cache was patched to eliminate such cases of writing nan to the whisper files. Can you look into this?
The text was updated successfully, but these errors were encountered: