public class Metrics extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_CONNECTIONS
The number of the connections that have been successfully acquired and are in active use
|
static String |
ACTIVE_DIRECT_MEMORY
The actual bytes consumed by in-use buffers allocated from direct buffer pools
|
static String |
ACTIVE_HEAP_MEMORY
The actual bytes consumed by in-use buffers allocated from heap buffer pools
|
static String |
ACTIVE_STREAMS
The number of the active HTTP/2 streams
|
static String |
ADDRESS_RESOLVER
Time spent for resolving the address
|
static String |
BYTE_BUF_ALLOCATOR_PREFIX
Name prefix that will be used for the ByteBufAllocator's metrics
registered in Micrometer's global registry
|
static String |
CHUNK_SIZE
The chunk size for an arena
|
static String |
CONNECT_TIME
Time spent for connecting to the remote address
|
static String |
CONNECTION_PROVIDER_PREFIX
Name prefix that will be used for the PooledConnectionProvider's metrics
registered in Micrometer's global registry
|
static String |
CONNECTIONS_ACTIVE
The number of connections that are currently in use
|
static String |
CONNECTIONS_TOTAL
The number of all connections, whether they are active or idle
|
static String |
DATA_RECEIVED
Amount of the data received, in bytes
|
static String |
DATA_RECEIVED_TIME
Time spent in consuming incoming data
|
static String |
DATA_SENT
Amount of the data sent, in bytes
|
static String |
DATA_SENT_TIME
Time spent in sending outgoing data
|
static String |
DIRECT_ARENAS
The number of direct arenas
|
static String |
ERROR |
static String |
ERRORS
Number of errors that occurred
|
static String |
EVENT_LOOP_PREFIX
Name prefix that will be used for Event Loop Group metrics
registered in Micrometer's global registry
|
static String |
HEAP_ARENAS
The number of heap arenas
|
static String |
HTTP_CLIENT_PREFIX
Name prefix that will be used for the HTTP client's metrics
registered in Micrometer's global registry
|
static String |
HTTP_SERVER_PREFIX
Name prefix that will be used for the HTTP server's metrics
registered in Micrometer's global registry
|
static String |
ID |
static String |
IDLE_CONNECTIONS
The number of the idle connections
|
static String |
LOCAL_ADDRESS |
static String |
MAX_CONNECTIONS
The maximum number of active connections that are allowed
|
static String |
MAX_PENDING_CONNECTIONS
The maximum number of requests that will be queued while waiting for a ready connection
|
static String |
METHOD |
static String |
NAME |
static String |
NORMAL_CACHE_SIZE
The size of the normal cache
|
static String |
OBSERVATION_KEY |
static io.micrometer.observation.ObservationRegistry |
OBSERVATION_REGISTRY |
static String |
PENDING_CONNECTIONS
The number of requests that are waiting for a connection
|
static String |
PENDING_STREAMS
The number of requests that are waiting for opening HTTP/2 stream
|
static String |
PENDING_TASKS
The number of tasks that are pending for processing on an event loop
|
static io.micrometer.core.instrument.MeterRegistry |
REGISTRY |
static String |
REMOTE_ADDRESS |
static String |
RESPONSE_TIME
Total time for the request/response
|
static String |
SMALL_CACHE_SIZE
The size of the small cache
|
static String |
STATUS |
static String |
STREAMS_ACTIVE
The number of active HTTP/2 streams
|
static String |
SUCCESS |
static String |
TCP_CLIENT_PREFIX
Name prefix that will be used for the TCP client's metrics
registered in Micrometer's global registry
|
static String |
TCP_SERVER_PREFIX
Name prefix that will be used for the TCP server's metrics
registered in Micrometer's global registry
|
static String |
THREAD_LOCAL_CACHES
The number of thread local caches
|
static String |
TLS_HANDSHAKE_TIME
Time spent for TLS handshake
|
static String |
TOTAL_CONNECTIONS
The number of all connections, active or idle
|
static String |
TYPE |
static String |
UDP_CLIENT_PREFIX
Name prefix that will be used for the UDP client's metrics
registered in Micrometer's global registry
|
static String |
UDP_SERVER_PREFIX
Name prefix that will be used for the UDP server's metrics
registered in Micrometer's global registry
|
static String |
URI |
static String |
USED_DIRECT_MEMORY
The number of bytes reserved by direct buffer allocator
|
static String |
USED_HEAP_MEMORY
The number of bytes reserved by heap buffer allocator
|
Constructor and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
static io.micrometer.observation.Observation |
currentObservation(ContextView contextView) |
static String |
formatSocketAddress(SocketAddress socketAddress) |
static Context |
updateContext(Context context,
Object observation) |
public static final io.micrometer.core.instrument.MeterRegistry REGISTRY
public static final String OBSERVATION_KEY
public static final io.micrometer.observation.ObservationRegistry OBSERVATION_REGISTRY
public static final String HTTP_SERVER_PREFIX
public static final String HTTP_CLIENT_PREFIX
public static final String TCP_SERVER_PREFIX
public static final String TCP_CLIENT_PREFIX
public static final String UDP_SERVER_PREFIX
public static final String UDP_CLIENT_PREFIX
public static final String EVENT_LOOP_PREFIX
public static final String CONNECTION_PROVIDER_PREFIX
public static final String BYTE_BUF_ALLOCATOR_PREFIX
public static final String DATA_RECEIVED
public static final String DATA_SENT
public static final String ERRORS
public static final String TLS_HANDSHAKE_TIME
public static final String CONNECT_TIME
public static final String DATA_RECEIVED_TIME
public static final String DATA_SENT_TIME
public static final String RESPONSE_TIME
public static final String CONNECTIONS_TOTAL
public static final String CONNECTIONS_ACTIVE
public static final String ADDRESS_RESOLVER
public static final String TOTAL_CONNECTIONS
public static final String ACTIVE_CONNECTIONS
public static final String MAX_CONNECTIONS
public static final String IDLE_CONNECTIONS
public static final String PENDING_CONNECTIONS
public static final String MAX_PENDING_CONNECTIONS
public static final String ACTIVE_STREAMS
public static final String PENDING_STREAMS
public static final String USED_HEAP_MEMORY
public static final String USED_DIRECT_MEMORY
public static final String ACTIVE_HEAP_MEMORY
public static final String ACTIVE_DIRECT_MEMORY
public static final String HEAP_ARENAS
public static final String DIRECT_ARENAS
public static final String THREAD_LOCAL_CACHES
public static final String SMALL_CACHE_SIZE
public static final String NORMAL_CACHE_SIZE
public static final String CHUNK_SIZE
public static final String PENDING_TASKS
public static final String STREAMS_ACTIVE
public static final String LOCAL_ADDRESS
public static final String REMOTE_ADDRESS
public static final String URI
public static final String STATUS
public static final String METHOD
public static final String ID
public static final String NAME
public static final String TYPE
public static final String SUCCESS
public static final String ERROR
@Nullable public static io.micrometer.observation.Observation currentObservation(ContextView contextView)
@Nullable public static String formatSocketAddress(@Nullable SocketAddress socketAddress)