Skip to content

Include the number of active instances in CommonsObjectPool2Metrics #2623

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

Merged

Conversation

jjank
Copy link
Contributor

@jjank jjank commented May 27, 2021

This PR adds the number of currently active instances in the pool as a gauge, very much like the exisiting num.idle gauge.

(...I had to refactor the test a little bit. The "dangling" pool instances made the test very flaky. If you have a cleaner/nicer solution than try-with-resources I'm open for it 👍 )

@jjank jjank changed the title Include thenumber of active instances in CommonsObjectPool2Metrics Include the number of active instances in CommonsObjectPool2Metrics May 27, 2021
@jonatan-ivanov jonatan-ivanov self-assigned this Jun 21, 2021
@jonatan-ivanov jonatan-ivanov added enhancement A general enhancement module: micrometer-core An issue that is related to our core module labels Jun 21, 2021
@jonatan-ivanov jonatan-ivanov added this to the 1.8.0-M1 milestone Jun 21, 2021
@jonatan-ivanov jonatan-ivanov merged commit b8f1056 into micrometer-metrics:main Jun 21, 2021
@jonatan-ivanov
Copy link
Member

@wengertj Thank you very much for the PR! :)

@jjank jjank deleted the commons-pool-num-active branch March 14, 2022 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general enhancement module: micrometer-core An issue that is related to our core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants