Package com.cockroachlabs.data.metrics
Class MicrometerCockroachDBMetrics
java.lang.Object
com.cockroachlabs.data.metrics.MicrometerCockroachDBMetrics
- All Implemented Interfaces:
CockroachDBMetrics
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cockroachlabs.data.metrics.CockroachDBMetrics
CockroachDBMetrics.InMemory, CockroachDBMetrics.Noop -
Constructor Summary
ConstructorsConstructorDescriptionMicrometerCockroachDBMetrics(io.micrometer.core.instrument.MeterRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptiondoublelonglonglongvoidrecordTransaction(long startNanos, int retries, boolean success) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cockroachlabs.data.metrics.CockroachDBMetrics
getFollowerReadCount, recordFollowerRead
-
Constructor Details
-
MicrometerCockroachDBMetrics
public MicrometerCockroachDBMetrics(io.micrometer.core.instrument.MeterRegistry registry)
-
-
Method Details
-
recordTransaction
public void recordTransaction(long startNanos, int retries, boolean success) - Specified by:
recordTransactionin interfaceCockroachDBMetrics
-
getTransactionCount
public long getTransactionCount()- Specified by:
getTransactionCountin interfaceCockroachDBMetrics
-
getRetryCount
public long getRetryCount()- Specified by:
getRetryCountin interfaceCockroachDBMetrics
-
getFailureCount
public long getFailureCount()- Specified by:
getFailureCountin interfaceCockroachDBMetrics
-
getAverageDurationMs
public double getAverageDurationMs()- Specified by:
getAverageDurationMsin interfaceCockroachDBMetrics
-