public class PoolingHttpClientConnectionManagerMetricsBinder extends java.lang.Object implements MeterBinder
ConnPoolControl
, for example PoolingHttpClientConnectionManager
for synchronous HTTP clients or PoolingNHttpClientConnectionManager
for asynchronous HTTP clients.
It monitors the overall connection pool state.
Constructor and Description |
---|
PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl,
java.lang.String name,
java.lang.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,
java.lang.String name,
java.lang.String... tags)
Creates a metrics binder for the given pooling connection pool control.
|
Modifier and Type | Method and Description |
---|---|
void |
bindTo(MeterRegistry registry) |
public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, java.lang.String name, java.lang.String... tags)
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.public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute> connPoolControl, java.lang.String name, java.lang.Iterable<Tag> tags)
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.public void bindTo(@NonNull MeterRegistry registry)
bindTo
in interface MeterBinder