Last active
October 25, 2021 07:34
-
-
Save ravin-singh/8654b654163c508cdb227a621fe078f0 to your computer and use it in GitHub Desktop.
Micrometer metrics exporter for apache http connection pool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create a scheduler to add new routes | |
@Scheduled(fixedRate = 300000) | |
public void updateHttpRoutes() { | |
Set<HttpRoute> routes = poolingHttpClientConnectionManager.getRoutes(); | |
for (HttpRoute route : routes) { | |
httpMetricsTracker.add(route, poolingHttpClientConnectionManager); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public class HttpPoolStats {
}