davsclaus opened a new pull request, #24278:
URL: https://github.com/apache/camel/pull/24278

   ## Summary
   
   - Adds a new `datasource` dev-console in `camel-console` that discovers all 
`javax.sql.DataSource` beans from the Camel registry and extracts connection 
pool metrics via reflection (no compile dependency on pool libraries)
   - Supports **HikariCP** (Spring Boot default) and **Agroal** (Quarkus 
default) connection pools
   - Wires the dev-console into `LocalCliConnector.statusTask()` for TUI access
   - Adds a new **DataSource** tab in the TUI More menu showing pool name, 
active/idle/total connections, max pool size, and waiting threads
   - Color-coded warnings: red when pool is exhausted (active >= max), yellow 
when threads are waiting
   
   ## Test plan
   
   - [x] Build `camel-console`, `camel-cli-connector`, and 
`camel-jbang-plugin-tui` modules
   - [x] Run a Camel app with Spring DataSource (HikariCP) and verify metrics 
appear in dev-console JSON
   - [ ] Verify TUI DataSource tab renders correctly with pool metrics
   - [ ] Verify sort cycling (s/S keys) works on all columns
   - [ ] Test with Quarkus/Agroal DataSource when available
   
   _Claude Code on behalf of Claus Ibsen_
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to