-
Notifications
You must be signed in to change notification settings - Fork 178
Description
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
Labels
Type
Projects
Status