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

[exporter/prometheusexporter] accumulate delta temporality histograms #23790

Merged
merged 35 commits into from
Jan 8, 2024

Conversation

hkfgo
Copy link
Contributor

@hkfgo hkfgo commented Jun 27, 2023

Description:
This continues the work done in the now closed PR. I have addressed issues raised in the original PR by

  • Adding logic to handle timestamp misalignments
  • Adding fix + a out-of-bounds bug

In addition, I have performed end-to-end testing in a local setup, and confirmed that accumulated histogram time series are correct.

Link to tracking Issue:
#4968
#9006
#19153
Testing:
Added tests for timestamp misalignment and an out-of-bounds bug discovered in the previous PR.
End-to-end testing to ensure histogram bucket counts exported to Prometheus are correct

nabam and others added 20 commits August 18, 2022 15:23
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
This reverts commit 21980b454cb0e2ad5a4dcfe35ba4426ef4a41460.

Signed-off-by: Loc Mai <locmai0201@gmail.com>
This reverts commit 08022fc9074a445533ab3cd8db22b8874ab4e00c.

Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: xchen <xchen@axon.com>
Signed-off-by: xchen <xchen@axon.com>
Signed-off-by: xchen <xchen@axon.com>
… bucket boundaries

Signed-off-by: xchen <xchen@axon.com>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 27, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Signed-off-by: stephenchen <x.chen1016@gmail.com>
Signed-off-by: stephenchen <x.chen1016@gmail.com>
Signed-off-by: stephenchen <x.chen1016@gmail.com>
… bucket boundaries

Signed-off-by: stephenchen <x.chen1016@gmail.com>
@hkfgo hkfgo force-pushed the chore/rebase-nabam-delta-prom branch from b2e18ca to ca4dde2 Compare June 27, 2023 17:49
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 27, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@hkfgo hkfgo marked this pull request as ready for review June 27, 2023 17:54
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 26, 2023
@hampusrosvall
Copy link

Also very interested in this! Happy to help out if needed. How can we get attention from code owners?

@hkfgo
Copy link
Contributor Author

hkfgo commented Oct 26, 2023

Also very interested in this! Happy to help out if needed. How can we get attention from code owners?

I've been pinging for a review on CNCF Slack.

@ggreen53
Copy link

ggreen53 commented Oct 26, 2023

I built this change into a deployed collector and confirmed it works as expected.

@github-actions github-actions bot removed the Stale label Oct 27, 2023
@jpkrohling
Copy link
Member

@sh0rez, can you please review this one?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@atoulme
Copy link
Contributor

atoulme commented Nov 29, 2023

@jpkrohling @sh0rez are you still looking to review?

@hkfgo
Copy link
Contributor Author

hkfgo commented Dec 6, 2023

Thanks for the review @atoulme! I've tidied-up the code a bit following your comments. Would you mind pinging other maintainers to have a look as well?

@jpkrohling
Copy link
Member

@jpkrohling @sh0rez are you still looking to review?

Sorry about that, I think it's not realistic to wait for a review from us to move forward with this PR.

@hkfgo
Copy link
Contributor Author

hkfgo commented Dec 18, 2023

@jpkrohling @sh0rez are you still looking to review?

Sorry about that, I think it's not realistic to wait for a review from us to move forward with this PR.

Ack. @atoulme would you be comfortable giving this an approval? It's been thoroughly tested and follows an existing pattern in Prometheus exporter to accumulate delta counters.

@gburton1
Copy link

This is approved, and I think it just needs to be merged by an authorized user now. Can someone do that?

@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Dec 29, 2023
@djaglowski djaglowski merged commit aaaaa0c into open-telemetry:main Jan 8, 2024
88 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 8, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2024
…open-telemetry#23790)

**Description:** <Describe what has changed.>
This continues the work done in the now closed
[PR](open-telemetry#20530).
I have addressed issues raised in the original PR by
- Adding logic to handle timestamp misalignments 
- Adding fix + a out-of-bounds bug  

In addition, I have performed end-to-end testing in a local setup, and
confirmed that accumulated histogram time series are correct.

**Link to tracking Issue:** <Issue number if applicable>

open-telemetry#4968

open-telemetry#9006

open-telemetry#19153
**Testing:** <Describe what testing was performed and which tests were
added.>
Added tests for timestamp misalignment and an out-of-bounds bug
discovered in the previous PR.
End-to-end testing to ensure histogram bucket counts exported to
Prometheus are correct

---------

Signed-off-by: Loc Mai <locmai0201@gmail.com>
Signed-off-by: xchen <xchen@axon.com>
Signed-off-by: stephenchen <x.chen1016@gmail.com>
Co-authored-by: Lev Popov <nabam@nabam.net>
Co-authored-by: Lev Popov <leo@nabam.net>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Loc Mai <locmai0201@gmail.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/prometheus ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.