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
public class BasicClientStats extends AbstractVeniceHttpStats
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
Constructors Modifier Constructor Description protected
BasicClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, RequestType requestType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicClientStats
getClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, RequestType requestType, ClientConfig clientConfig)
protected io.tehuti.metrics.stats.Rate
getRequestRate()
protected io.tehuti.metrics.stats.Rate
getSuccessRequestKeyCountRate()
void
recordHealthyLatency(double latency)
void
recordHealthyRequest()
void
recordRequestKeyCount(int keyCount)
void
recordSuccessRequestKeyCount(int successKeyCount)
void
recordUnhealthyRequest()
-
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, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotalSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
-
-
-
-
Constructor Detail
-
BasicClientStats
protected BasicClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, RequestType requestType)
-
-
Method Detail
-
getClientStats
public static BasicClientStats getClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.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()
-
-