-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
[io.monitor] Upgrade dependencies and enable monitoring of ThreadPools #4639
base: main
Are you sure you want to change the base?
Conversation
* metrics-core from 4.0.7 to 4.2.30 Release notes: https://github.com/dropwizard/metrics/releases * micrometer-core from 1.6.3 to 1.14.4 Release notes: https://github.com/micrometer-metrics/micrometer/releases * HdrHistogram from 2.1.12 to 2.2.2 Release notes: https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.1 https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.2 Signed-off-by: Holger Friedrich <[email protected]>
This is still work in progress. It basically seems to work, with the modified metric binding from openhab/openhab-addons#18377; data shows up at http://localhost:8080/rest/metrics/prometheus as expected. Though, during startup I can see a warning showing up several times:
Looking at the implementation, this seems to be caused by registering our thread pools for monitoring, in I have checked my 4.3.x installation and do not find thread pool data as well, so I am wondering if this has stopped working at some time in the past. |
* Base UnstoppableExecutorService on ThreadPoolExecutor which is supported by ExecutorServiceMetrics of micrometer-core * Fix handling of references to ExecutorServiceMetrics to avoid garbage collection removing the instances * Remove duplicate registration of ThreadPools Signed-off-by: Holger Friedrich <[email protected]>
The effects described above seemed to be caused by the garbage collector cleaning up the instance of ExecutorServiceMetrics. I have a working implementation, which actually bases This a part of what I see on the demo app on http://localhost:8080/rest/metrics/prometheus (after installing the modified metric binding from openhab/openhab-addons#18377 via the Webcosole http://localhost:8080/system/console/bundles):
From my point of view, we are good to go for a review. |
Release notes:
https://github.com/dropwizard/metrics/releases
Release notes:
https://github.com/micrometer-metrics/micrometer/releases
Release notes:
https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.1 https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.2