Class PoolingHttpClientConnectionManagerMetricsBinder
java.lang.Object
io.micrometer.core.instrument.binder.httpcomponents.PoolingHttpClientConnectionManagerMetricsBinder
- All Implemented Interfaces:
MeterBinder
@Deprecated
public class PoolingHttpClientConnectionManagerMetricsBinder
extends Object
implements MeterBinder
Deprecated.
Collects metrics from a
ConnPoolControl, for example
PoolingHttpClientConnectionManager for synchronous
HTTP clients or
PoolingNHttpClientConnectionManager for
asynchronous HTTP clients.
It monitors the overall connection pool state. Usage example:
PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager();
HttpClient httpClient = HttpClientBuilder.create().setConnectionManager(connectionManager).build();
new PoolingHttpClientConnectionManagerMetricsBinder(connectionManager, "my-pool").bindTo(registry);
See
PoolingHttpClientConnectionManagerMetricsBinder
for Apache HTTP client 5 support.
- Since:
- 1.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionPoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, String name, Iterable<Tag> tags) Deprecated.Creates a metrics binder for the given connection pool control.PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, String name, String... tags) Deprecated.Creates a metrics binder for the given pooling connection pool control. -
Method Summary
-
Constructor Details
-
PoolingHttpClientConnectionManagerMetricsBinder
public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, String name, String... tags) Deprecated.Creates a metrics binder for the given pooling connection pool control.- Parameters:
connPoolControl- The connection pool control to monitor.name- Name of the connection pool control. Will be added as tag with the key "httpclient".tags- Tags to apply to all recorded metrics. Must be an even number of arguments representing key/value pairs of tags.
-
PoolingHttpClientConnectionManagerMetricsBinder
public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, String name, Iterable<Tag> tags) Deprecated.Creates a metrics binder for the given connection pool control.- Parameters:
connPoolControl- The connection pool control to monitor.name- Name of the connection pool control. Will be added as tag with the key "httpclient".tags- Tags to apply to all recorded metrics.
-
-
Method Details
-
bindTo
Deprecated.- Specified by:
bindToin interfaceMeterBinder
-
PoolingHttpClientConnectionManagerMetricsBinder.