Class PoolingHttpClientConnectionManagerMetricsBinder
- java.lang.Object
-
- io.micrometer.core.instrument.binder.httpcomponents.PoolingHttpClientConnectionManagerMetricsBinder
-
- All Implemented Interfaces:
MeterBinder
public class PoolingHttpClientConnectionManagerMetricsBinder extends java.lang.Object implements MeterBinder
Collects metrics from aPoolingHttpClientConnectionManager
. It monitors the overall connection pool state.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager, java.lang.String name, java.lang.Iterable<Tag> tags)
Creates a metrics binder for the given pooling connection manager.PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager, java.lang.String name, java.lang.String... tags)
Creates a metrics binder for the given pooling connection manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindTo(MeterRegistry registry)
-
-
-
Constructor Detail
-
PoolingHttpClientConnectionManagerMetricsBinder
public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager, java.lang.String name, java.lang.String... tags)
Creates a metrics binder for the given pooling connection manager.- Parameters:
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.
-
PoolingHttpClientConnectionManagerMetricsBinder
public PoolingHttpClientConnectionManagerMetricsBinder(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager, java.lang.String name, java.lang.Iterable<Tag> tags)
Creates a metrics binder for the given pooling connection manager.- Parameters:
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.
-
-
Method Detail
-
bindTo
public void bindTo(@NonNull MeterRegistry registry)
- Specified by:
bindTo
in interfaceMeterBinder
-
-