Open mfvanek opened 2 years ago
For example see
The most important thing here is that metrics can't be binded during bean creation. It leads to circular dependency. Should use this pattern
@Override
public void onApplicationEvent(ApplicationStartedEvent event) {
...
this.tomcatMetrics.bindTo(this.meterRegistry);
}
After migration to Spring Boot 3. Consider to use Micrometer Observation
Consider adding metrics in prometheus format.
We should use Micrometer 1.9.12 (or higher but compatible with Spring Boot 2.7.x)