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

Use previous value for cumulative resets #145

Merged
merged 1 commit into from
Mar 5, 2021
Merged

Use previous value for cumulative resets #145

merged 1 commit into from
Mar 5, 2021

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Mar 5, 2021

Follows the issue fixed upstream Stackdriver/stackdriver-prometheus-sidecar#263.

This appears to allow the reset timestamp to be too old--once it resets to zero once, it'll never reset again. This fix ensures that the reset timestamp adjusts when the value falls.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@jmacd jmacd merged commit cc72749 into main Mar 5, 2021
@jmacd jmacd deleted the jmacd/reset_Fix branch March 5, 2021 04:58
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

Successfully merging this pull request may close these issues.

2 participants