-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[prometheus components] For histograms without sums, leave the sum unset #9120
Merged
bogdandrutu
merged 2 commits into
open-telemetry:main
from
dashpole:histogram_without_sum
Sep 7, 2022
Merged
[prometheus components] For histograms without sums, leave the sum unset #9120
bogdandrutu
merged 2 commits into
open-telemetry:main
from
dashpole:histogram_without_sum
Sep 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dashpole
force-pushed
the
histogram_without_sum
branch
from
April 8, 2022 13:57
bece4ab
to
4f00b37
Compare
Aneurysm9
reviewed
Apr 13, 2022
dashpole
force-pushed
the
histogram_without_sum
branch
5 times, most recently
from
April 19, 2022 17:28
d89f35f
to
f9ed2cf
Compare
dashpole
force-pushed
the
histogram_without_sum
branch
from
April 25, 2022 12:49
f9ed2cf
to
a3412c8
Compare
cc @open-telemetry/wg-prometheus |
dashpole
force-pushed
the
histogram_without_sum
branch
from
April 28, 2022 14:21
a3412c8
to
1ccf7cd
Compare
dashpole
force-pushed
the
histogram_without_sum
branch
from
May 6, 2022 17:18
1ccf7cd
to
cccfb37
Compare
dashpole
force-pushed
the
histogram_without_sum
branch
from
May 20, 2022 18:50
cccfb37
to
95f1023
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
dashpole
force-pushed
the
histogram_without_sum
branch
from
June 14, 2022 13:40
b87e925
to
a002e3f
Compare
dashpole
force-pushed
the
histogram_without_sum
branch
2 times, most recently
from
June 21, 2022 20:36
80dd729
to
7a50abd
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
dashpole
force-pushed
the
histogram_without_sum
branch
from
August 4, 2022 21:17
7a50abd
to
8b58c4e
Compare
dashpole
force-pushed
the
histogram_without_sum
branch
from
August 5, 2022 15:02
6d4618f
to
b47f248
Compare
pichlermarc
approved these changes
Aug 8, 2022
dashpole
force-pushed
the
histogram_without_sum
branch
from
August 19, 2022 16:43
b47f248
to
40950ed
Compare
dashpole
added
receiver/prometheus
Prometheus receiver
exporter/prometheusremotewrite
labels
Aug 25, 2022
Aneurysm9
approved these changes
Aug 25, 2022
dashpole
added
the
ready to merge
Code review completed; ready to merge by maintainers
label
Aug 25, 2022
bogdandrutu
reviewed
Aug 30, 2022
dashpole
force-pushed
the
histogram_without_sum
branch
2 times, most recently
from
September 1, 2022 12:26
ca3b768
to
5ce3746
Compare
@dashpole needs a rebase, sorry for the issue. |
…hout sums, leave the sum unset
dashpole
force-pushed
the
histogram_without_sum
branch
from
September 7, 2022 15:35
5ce3746
to
d9663d7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp:prometheus
Prometheus related issues
exporter/prometheusremotewrite
ready to merge
Code review completed; ready to merge by maintainers
receiver/prometheus
Prometheus receiver
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Prometheus histograms don't have a sum if the histogram includes negative observations. Now that the protocol supports a notion of "unset" sums, use this in prometheus components to correctly handle setting the sum.
I tried to do this for the prometheus exporter as well, but NewConstHistogram requires a sum (i.e. doesn't support an unset sum). https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/prometheusexporter/collector.go#L200
Link to tracking Issue:
Part of #7546
Testing:
Added unit tests.