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 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

    Constructors
    Constructor 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.
  • Method Summary

    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 Details

    • PoolingHttpClientConnectionManagerMetricsBinder

      public 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.
      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, java.lang.String name, java.lang.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