Skip to content

OM 2.0: Float valued histograms #309

@krajorama

Description

@krajorama

Problem Statement

Native and classic histograms currently only allow positive integer counters for the Count and Bucket values (aka bucket count) in the Histogram type and positive integer gauges in the GaugeHistogram.

There's a use case for storing and exposing (gauge) histograms that are a result of arithmetic operations. For example a recording rule might store the rate of observations, which will result in fractions, or any other arithmetic operations such as division, negation, etc.

Proposed solution

Allow fractions in the count and buckets in Histograms.
Allow fractions and negative values in count and buckets for GaugeHistograms.

Alternatives considered

Do nothing

Cannot expose valid use cases.

Create new metric types

What would be the added value?

Depend on negotiated feature

Do not allow fractions/negative values by default. Only if negotiated.
Maybe something to consider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    For 2.0?

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions