Skip to content

discuss: exponential histogram addition #31340

Closed
@tombrk

Description

@tombrk

Component(s)

processor/deltatocumulative

Describe the issue you're reporting

To convert delta to cumulative, the spec says the following:

Add the current value to the cumulative counter

While that operation is clear for sums ($\text{old}+\text{sample}=\text{next}$), histograms are a more complex data structure:

type Histogram struct {
    count int64
    sum float64
    bucket_counts []int64 // optional
    explicit_bounds []float64 // optional
    min, max float64 // optional
}
  • bucket_counts and explicit_bounds are required when there are buckets at all, which is nearly always the case
  • spec question: can buckets change over time?
  • what do count and sum contain in a delta context?
  • how do we handle min and max?

Let's discuss how this operation should look like and what the edge-cases are
@jpkrohling @gouthamve @RichieSams @djaglowski

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