Class PoolingHttpClientConnectionManagerMetricsBinder
java.lang.Object
io.micrometer.core.instrument.binder.httpcomponents.PoolingHttpClientConnectionManagerMetricsBinder
- All Implemented Interfaces:
MeterBinder
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.
- Since:
- 1.3.0
-
Constructor Summary
ConstructorDescriptionPoolingHttpClientConnectionManagerMetricsBinder
(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, String name, Iterable<Tag> tags) 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) 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) 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) 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
- Specified by:
bindTo
in interfaceMeterBinder
-