Forked from ravin-singh/gist:8654b654163c508cdb227a621fe078f0
Created
July 15, 2019 06:26
-
-
Save Kurukshetran/812736354f087e386b36112fe7b517a6 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