Skip to content

Recommendation on the number of quantile samples #237

@erichsueh3

Description

@erichsueh3

Is your feature request related to a problem?
Yes. We are working on the C++ Prometheus Exporter and are mapping the Exact Aggregator to the Prometheus Summary data type, which requires a vector of quantile data. We found some gaps between these two components.

  1. The Exact Aggregator has two different modes. We can pass a boolean in the constructor to tell it whether to collect the quantile data. If an Exact Aggregator instance is initialized with a false, we cannot get the quantile from it and it cannot be translated to a Prometheus Summary in this case.
  2. If the Exact Aggregator collects quantile data, there is also another problem. In the aggregator we have a function that takes a double between 0 to 1 inclusive as a quantile, and it returns the value at this quantile. We don't know how many quantile samples should be taken and put into a Prometheus Summary.

Describe the solution you'd like

  1. For the first problem, we need some instructions from the community.
  2. For the second, what we are doing now is taking quantiles at 0, 0.25, 0.5, 0.75, and 1, so the quantile vector has 5 samples in it. Again, some official instructions needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions