public class PoolingHttpClientConnectionManagerMetricsBinder extends Object implements MeterBinder
PoolingHttpClientConnectionManager.
It monitors the overall connection pool state.| Constructor and Description |
|---|
PoolingHttpClientConnectionManagerMetricsBinder(PoolingHttpClientConnectionManager connectionManager,
String name,
Iterable<Tag> tags)
Creates a metrics binder for the given pooling connection manager.
|
PoolingHttpClientConnectionManagerMetricsBinder(PoolingHttpClientConnectionManager connectionManager,
String name,
String... tags)
Creates a metrics binder for the given pooling connection manager.
|
public PoolingHttpClientConnectionManagerMetricsBinder(PoolingHttpClientConnectionManager connectionManager,
String name,
String... tags)
connectionManager - The connection manager to monitor.name - Name of the connection manager. 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(PoolingHttpClientConnectionManager connectionManager,
String name,
Iterable<Tag> tags)
connectionManager - The connection manager to monitor.name - Name of the connection manager. 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 MeterBinderCopyright © 2020 LeanCloud. All rights reserved.