Stop reporting datasource timeout configuration as metrics - #833
Conversation
|
Could you be clear how the old metrics look like? and how about your new proposals? |
|
Thanks for the PR. The mixed-unit chart is a real problem, but I don't think a new metric is the right fix.
So I'd suggest we stop collecting them instead of adding a new metric:
No OAP MAL or UI changes are needed. The For consistency, please do the same for dbcp's The runtime signals about connection timeouts are already covered:
|
|
Thanks for the update, this is what I had in mind. The rest looks good: the removals are consistent across HikariCP, DBCP and c3p0, the expected data drops the entries instead of renaming them, and the Two nits:
|
…ce metrics reporting changes
Fixed both nits. Thanks for the review. |
CHANGESlog.This PR stops reporting datasource timeout configuration as metrics across the c3p0, DBCP and HikariCP plugins.
Previously, timeout-related values such as c3p0's maxIdleTime, DBCP's maxWaitMillis, and HikariCP's connectionTimeout, validationTimeout, idleTimeout and leakDetectionThreshold were exported as datasource gauges. These are static configuration values rather than runtime pool status, and mixing them into the datapool metrics — with units and scales that differ from connection counts — distorted line-chart visualization and made connection-related trends hard to interpret.
Removing them keeps the datasource metric family focused on real runtime pool state, so the remaining gauges share consistent semantics and the visualization is accurate and readable.
old

new
