Class ServerMetrics

java.lang.Object
com.linecorp.armeria.server.ServerMetrics
All Implemented Interfaces:
MeterBinder

@UnstableApi public final class ServerMetrics extends Object implements MeterBinder
A class that holds metrics related server.
  • Method Details

    • pendingRequests

      public long pendingRequests()
      Returns the number of all pending requests.
    • pendingHttp1Requests

      public long pendingHttp1Requests()
      Returns the number of pending http1 requests.
    • pendingHttp2Requests

      public long pendingHttp2Requests()
      Returns the number of pending http2 requests.
    • activeRequests

      public long activeRequests()
      Returns the number of all active requests.
    • activeHttp1WebSocketRequests

      public long activeHttp1WebSocketRequests()
      Returns the number of active http1 web socket requests.
    • activeHttp1Requests

      public long activeHttp1Requests()
      Returns the number of active http1 requests.
    • activeHttp2Requests

      public long activeHttp2Requests()
      Returns the number of active http2 requests.
    • activeConnections

      public int activeConnections()
      Returns the number of open connections.
    • bindTo

      public void bindTo(MeterRegistry meterRegistry)
      Specified by:
      bindTo in interface MeterBinder
    • toString

      public String toString()
      Overrides:
      toString in class Object