Skip to content

om2/gaugehistogram: prohibit negative count and bucket values - #3139

Open
krajorama wants to merge 1 commit into
om2-rc1from
krajo/om2-no-negative-buckets
Open

krajorama wants to merge 1 commit into
om2-rc1from
krajo/om2-no-negative-buckets

Conversation

@krajorama

Copy link
Copy Markdown
Member

Even though a negative count may arise from arithmetic operations from on native histograms, we don't believe that the resulting distribution means anything or is useful. Instead of changing the validation of histograms stored in Prometheus , we're making the specification more strict.

Note: negative histograms may still be calculated in Prometheus and returned as PromQL query results or used as intermediate values in calculations. As explained by the native histograms specification: https://prometheus.io/docs/specs/native_histograms/#unary-minus-and-negative-histograms

Even though a negative count may arise from arithmetic operations from on
native histograms, we don't believe that the resulting distribution
means anything or is useful. Instead of changing the validation of
histograms stored in Prometheus , we're making the specification
more strict.

Note: negative histograms may still be calculated in Prometheus and
returned as PromQL query results or used as intermediate values in
calculations. As explained by the native histograms specification:
https://prometheus.io/docs/specs/native_histograms/#unary-minus-and-negative-histograms

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant