Package com.linecorp.armeria.server
Class ServerMetrics
java.lang.Object
com.linecorp.armeria.server.ServerMetrics
- All Implemented Interfaces:
MeterBinder
A class that holds metrics related server.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of open connections.long
Returns the number of active http1 requests.long
Returns the number of active http1 web socket requests.long
Returns the number of active http2 requests.long
Returns the number of all active requests.void
bindTo
(MeterRegistry meterRegistry) long
Returns the number of pending http1 requests.long
Returns the number of pending http2 requests.long
Returns the number of all pending requests.toString()
-
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
- Specified by:
bindTo
in interfaceMeterBinder
-
toString
-