Use-cases
Accurately represent distribution, perform operation on those, send sketches to endpoint that support that kind of data for better accuracy and flexibility.
Proposal
Based on the current supported metric types two option can be envisioned:
- Switch an existing type to be the facade for sketches (e.g. the
Distribution type)
- Add a new Sketch type and expose conversion between relevant type in VRL
Option #2 seems more reasonable: no compatibility issue, user can do what they want if conversion are consistently implemented between relevant types. The sketch format would likely be ddsketch.
References
The problem: Streaming quantiles
Datadog approach: ddsketch
Use-cases
Accurately represent distribution, perform operation on those, send sketches to endpoint that support that kind of data for better accuracy and flexibility.
Proposal
Based on the current supported metric types two option can be envisioned:
Distributiontype)Option #2 seems more reasonable: no compatibility issue, user can do what they want if conversion are consistently implemented between relevant types. The sketch format would likely be ddsketch.
References
The problem: Streaming quantiles
Datadog approach: ddsketch