Class PoolingHttpClientConnectionManagerMetricsBinder

  • All Implemented Interfaces:
    MeterBinder

    public class PoolingHttpClientConnectionManagerMetricsBinder
    extends java.lang.Object
    implements MeterBinder
    Collects metrics from a PoolingHttpClientConnectionManager. 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.