@PublicEvolving public interface CacheMetricGroup extends MetricGroup
Please note that these methods should only be invoked once. Registering a metric with same name for multiple times would lead to an undefined behavior.
Modifier and Type | Method and Description |
---|---|
void |
hitCounter(Counter hitCounter)
The number of cache hits.
|
void |
latestLoadTimeGauge(Gauge<Long> latestLoadTimeGauge)
The time spent for the latest load operation.
|
void |
loadCounter(Counter loadCounter)
The number of times to load data into cache from external system.
|
void |
missCounter(Counter missCounter)
The number of cache misses.
|
void |
numCachedBytesGauge(Gauge<Long> numCachedBytesGauge)
The number of bytes used by cache.
|
void |
numCachedRecordsGauge(Gauge<Long> numCachedRecordsGauge)
The number of records in cache.
|
void |
numLoadFailuresCounter(Counter numLoadFailuresCounter)
The number of load failures.
|
addGroup, addGroup, addGroup, addSpan, counter, counter, counter, counter, gauge, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, meter, meter
void hitCounter(Counter hitCounter)
void missCounter(Counter missCounter)
void loadCounter(Counter loadCounter)
void numLoadFailuresCounter(Counter numLoadFailuresCounter)
void latestLoadTimeGauge(Gauge<Long> latestLoadTimeGauge)
void numCachedRecordsGauge(Gauge<Long> numCachedRecordsGauge)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.