Skip to content

Commit

Permalink
Add migration monitoring precision
Browse files Browse the repository at this point in the history
  • Loading branch information
amanteaux committed Jan 16, 2025
1 parent a5fdb35 commit 0fdbd7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/releases/RELEASE_v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ To do that:
- In `GrizzlySetup`, in the `start()` method:
- add the following dependency in the method signature: `GrizzlyThreadPoolProbe grizzlyThreadPoolProbe`
- declare the prob in the http server configuration: `httpServer.getServerConfiguration().getMonitoringConfig().getThreadPoolConfig().addProbes(grizzlyThreadPoolProbe);`
- In `WebApplication`, fill the new `GrizzlySetup` dependency using `injector.getInstance(GrizzlyThreadPoolProbe.class)`
- In `MonitoringWs`, in the constructor:
- add the following dependencies in the method signature: `GrizzlyThreadPoolProbe grizzlyThreadPoolProbe` and `HikariDataSource hikariDataSource`
- Use the metrics: `this.metricsStatusProvider = new MetricsCheckBuilder().registerJvmMetrics().registerGrizzlyMetrics(grizzlyThreadPoolProbe).registerHikariMetrics(hikariDataSource).build()`

The [Plume showcase project](https://github.com/Coreoz/Plume-showcase) has implemented this monitoring.
Browsing the source code can help to verify the required changes.

0 comments on commit 0fdbd7b

Please sign in to comment.