diff --git a/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/PoolingHttpClientConnectionManagerMetricsBinder.java b/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/PoolingHttpClientConnectionManagerMetricsBinder.java index dba28cabff..5a9004d834 100644 --- a/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/PoolingHttpClientConnectionManagerMetricsBinder.java +++ b/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/httpcomponents/PoolingHttpClientConnectionManagerMetricsBinder.java @@ -31,7 +31,11 @@ * {@link org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager} for * asynchronous HTTP clients. *

- * It monitors the overall connection pool state. + * It monitors the overall connection pool state. Usage example:

{@code
+ *      PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
+ *      HttpClient httpClient = HttpClientBuilder.create().setConnectionManager(connectionManager).build();
+ *      new PoolingHttpClientConnectionManagerMetricsBinder(connectionManager, "my-pool").bindTo(registry);
+ * }
* * @author Benjamin Hubert (benjamin.hubert@willhaben.at) * @since 1.3.0