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(kork-sql): Use class variables for hikari pool metrics (backport #1081) #1082

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 1, 2023

This is an automatic backport of pull request #1081 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

The SQL pool gauge metrics are disappearing due to the adhoc gauge
objects being garbage collected. This change fixes the pool metrics to be
class variables instead and hence avoid being garbage collected.
The micrometer docs also alludes to this issue:
https://micrometer.io/docs/concepts#_why_is_my_gauge_reporting_nan_or_disappearing

(cherry picked from commit 032fc2d)
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Aug 2, 2023
@mergify mergify bot added the auto merged label Aug 2, 2023
@mergify mergify bot merged commit 2260997 into release-1.30.x Aug 2, 2023
6 checks passed
@mergify mergify bot deleted the mergify/bp/release-1.30.x/pr-1081 branch August 2, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants