Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dose histogram support merge operation? #468

Open
simon-fu opened this issue Oct 24, 2022 · 0 comments
Open

Dose histogram support merge operation? #468

simon-fu opened this issue Oct 24, 2022 · 0 comments

Comments

@simon-fu
Copy link

simon-fu commented Oct 24, 2022

For example, there are two histogram variables named h1 and h2 as :

# TYPE h1 histogram
h1_bucket{le="0"} 3
h1_bucket{le="1"} 5
h1_bucket{le="2"} 8
h1_bucket{le="+Inf"} 8
h1_sum 8
h1_count 8
# HELP h2 The second h2
# TYPE h2 histogram
h2_bucket{le="0"} 1
h2_bucket{le="1"} 3
h2_bucket{le="2"} 6
h2_bucket{le="+Inf"} 6
h2_sum 8
h2_count 6

After merge h1 and h2 into h3, we got:

# TYPE h3 histogram
h3_bucket{le="0"} 4
h3_bucket{le="1"} 8
h3_bucket{le="2"} 14
h3_bucket{le="+Inf"} 14
h3_sum 16
h3_count 14
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

No branches or pull requests

1 participant