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

receiver/prometheusreceiver: allow cumulative resets when using the adjuster #37718

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ridwanmsharif
Copy link
Contributor

Fixes #37717

Prior to this change, when the start time metric adjuster was used all points used the same start timestamp. Even after a reset, which makes no sense for a counter which is not supposed to go down.

Instead this change makes it so that when a reset is detected, the the reset points timestamp is used as the next start time.

@ridwanmsharif ridwanmsharif requested review from dashpole and a team as code owners February 5, 2025 18:03
@github-actions github-actions bot added the receiver/prometheus Prometheus receiver label Feb 5, 2025
@github-actions github-actions bot requested a review from Aneurysm9 February 5, 2025 18:03
…djuster

Fixes open-telemetry#37717

Prior to this change, when the start time metric adjuster was used all
points used the same start timestamp. Even after a reset, which makes no
sense for a counter which is not supposed to go down.

Instead this change makes it so that when a reset is detected, the the
reset points timestamp is used as the next start time.

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/metricadjuster-reset-v2 branch from 6b0261b to c5fd0ed Compare February 5, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/prometheus Prometheus receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Start time metric adjuster should deal with cumulative resets
2 participants