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

fix: change .inc calls to .increment #8000

Merged
merged 1 commit into from
Aug 28, 2024
Merged

fix: change .inc calls to .increment #8000

merged 1 commit into from
Aug 28, 2024

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Aug 28, 2024

We are observing incorrect data in Prometheus, which is consistently non-reproducible. After a restart, the issue does not occur, but if the pods run for an extended period, they seem to enter a strange state where the counters become entangled and start sharing arbitrary values that are added to the counters.

For example, the feature_lifecycle_stage_entered counter gets an arbitrary value, such as 12, added when inc() is called. The exceedsLimitErrorCounter shows the same behavior, and the code implementation is identical.

We also tested some existing increase() counters, and they do not suffer from this issue.

All calls to counter.labels(labels).inc() will be replaced by counter.increment() to try to mitigate the issue.

Copy link

vercel bot commented Aug 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2024 9:45am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Aug 28, 2024 9:45am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@kwasniew kwasniew self-requested a review August 28, 2024 09:49
@sjaanus sjaanus merged commit 7ad686e into main Aug 28, 2024
11 of 13 checks passed
@sjaanus sjaanus deleted the inc-to-increment branch August 28, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants