8000 nhcb: arithmetic operations on custom histograms and histograms with different schema · Issue #13494 · prometheus/prometheus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
nhcb: arithmetic operations on custom histograms and histograms with different schema #13494
Closed
@krajorama

Description

@krajorama

Proposal

Depends on #13486.

TBD define the semantics of doing binary arithmetic operations in case one side is a custom histogram and the other side is an exponential histogram or custom histogram with different bucket layout.

Update 2024.06.18. from the histograms sync meeting:
In case of binary operations when the two samples have incompatible bucket layouts (case 1: both have custom buckets , but the buckets don't match case 2: one has custom buckets, other is exponential histogram):

  • the operation should produce no sample for that timestamp
  • the operation should emit a warning saying that histogram layouts are incomaptible

Update 2024.07.29.:
PR #14464 was merged which adds test cases for the happy cases (schemas line up). Now the task would be to add test cases for irregular cases (custom buckets don't line up, custom buckets vs exponential buckets).

Update 2024.10.08:
PR #15086 adds a few more tests with compatible schema.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0