-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support noNullPoints flag #221
Comments
Hi, have you tried trasformNull and removeEmtpySeries? These may do what you want. |
Hi @grzkv , |
Yes, I understand that it's a query param. You don't have to edit the metric with the above solution, just the functions on top of it. |
I am aware of it but again, don’t want to wrap my metric with additional function |
We are currently using carbonapi with go-carbon and it does not have support for noNullPoints. |
Sure, |
@grzkv there is no support for it in grafana grafana/grafana#11171 currently, UPD: seems there is enough data to reconstruct, but from my understanding we wont be able to implement noNullPoints without changing the protocol https://github.com/go-graphite/protocol/blob/master/carbonapi_v2_pb/carbonapi_v2_pb.pb.go#L30 am I right? |
Protobuf doesn't have any special compression for doubles, so for each value you won't pass on a wire you'll save at least 65 bit of memory (Value + IsAbsent). On a wire it will be less if you still use compression. Also without changing the protocol you indeed won't be able to implement noNullPoints on a wire, except for removing them from the start and end of the response. Both v2 and v3 doesn't have that feature, as it would require to pass the timestamp for each datapoint as well, instead of just start time and stop time. And the assumption for both versions of the storage protocols is that usually you mostly have non-Null data in the responses. |
Also, protocol level support can be added without introducing backward incompatibility. If you add a new field for timestamps to current protocol and add a flag for the request type, on application level you can treat it differently without a problem and protocols would still be wire-compatible. |
@dorroddorrod You can do the implementation in |
Hi,
Can you please add support of noNullPoints flag ?
This is really useful feature to avoid retrieving null data
The text was updated successfully, but these errors were encountered: