Package com.linkedin.venice.client.stats
Class BasicClientStats
java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.stats.AbstractVeniceHttpStats
com.linkedin.venice.client.stats.BasicClientStats
- Direct Known Subclasses:
ClientStats
This class offers very basic metrics for client, and right now, it is directly used by DaVinci.
-
Field Summary
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER
-
Constructor Summary
ModifierConstructorDescriptionprotected
BasicClientStats
(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType) -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicClientStats
getClientStats
(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType, ClientConfig clientConfig) protected final io.tehuti.metrics.stats.Rate
protected final io.tehuti.metrics.stats.Rate
void
recordHealthyLatency
(double latency) void
void
recordRequestKeyCount
(int keyCount) void
recordSuccessRequestKeyCount
(int successKeyCount) void
Methods inherited from class com.linkedin.venice.stats.AbstractVeniceHttpStats
getFullMetricName, getRequestType, registerSensor, registerSensor, registerSensor, registerSensorWithDetailedPercentiles
Methods inherited from class com.linkedin.venice.stats.AbstractVeniceStats
avgAndMax, avgAndTotal, getMetricFullName, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotalSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
-
Constructor Details
-
BasicClientStats
protected BasicClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType)
-
-
Method Details
-
getClientStats
public static BasicClientStats getClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType, ClientConfig clientConfig) -
recordHealthyRequest
public void recordHealthyRequest() -
recordUnhealthyRequest
public void recordUnhealthyRequest() -
recordHealthyLatency
public void recordHealthyLatency(double latency) -
recordRequestKeyCount
public void recordRequestKeyCount(int keyCount) -
recordSuccessRequestKeyCount
public void recordSuccessRequestKeyCount(int successKeyCount) -
getRequestRate
protected final io.tehuti.metrics.stats.Rate getRequestRate() -
getSuccessRequestKeyCountRate
protected final io.tehuti.metrics.stats.Rate getSuccessRequestKeyCountRate()
-