Package com.linkedin.venice.stats
Class AbstractVeniceHttpStats
- java.lang.Object
-
- com.linkedin.venice.stats.AbstractVeniceStats
-
- com.linkedin.venice.stats.AbstractVeniceHttpStats
-
- Direct Known Subclasses:
BasicClientStats
,ClusterRouteStats.RouteStats
,RouterHttpRequestStats
,ServerHttpRequestStats
public abstract class AbstractVeniceHttpStats extends AbstractVeniceStats
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER
-
-
Constructor Summary
Constructors Constructor Description AbstractVeniceHttpStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, RequestType requestType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getFullMetricName(java.lang.String metricName)
protected RequestType
getRequestType()
protected io.tehuti.metrics.Sensor
registerSensor(io.tehuti.metrics.NamedMeasurableStat... stats)
protected io.tehuti.metrics.Sensor
registerSensor(java.lang.String sensorName, io.tehuti.metrics.MeasurableStat... stats)
By default, this function will prepend the request type to the sensor name.protected io.tehuti.metrics.Sensor
registerSensor(java.lang.String sensorName, io.tehuti.metrics.Sensor[] parents, io.tehuti.metrics.MeasurableStat... stats)
protected io.tehuti.metrics.Sensor
registerSensorWithDetailedPercentiles(java.lang.String sensorName, io.tehuti.metrics.MeasurableStat... stats)
By default, this function will prepend the request type to the sensor name, and register percentiles with the same name.-
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
-
AbstractVeniceHttpStats
public AbstractVeniceHttpStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, RequestType requestType)
-
-
Method Detail
-
getRequestType
protected RequestType getRequestType()
-
getFullMetricName
protected java.lang.String getFullMetricName(java.lang.String metricName)
-
registerSensor
protected io.tehuti.metrics.Sensor registerSensor(java.lang.String sensorName, io.tehuti.metrics.MeasurableStat... stats)
By default, this function will prepend the request type to the sensor name.- Overrides:
registerSensor
in classAbstractVeniceStats
- Parameters:
sensorName
-stats
-- Returns:
-
registerSensor
protected io.tehuti.metrics.Sensor registerSensor(java.lang.String sensorName, io.tehuti.metrics.Sensor[] parents, io.tehuti.metrics.MeasurableStat... stats)
- Overrides:
registerSensor
in classAbstractVeniceStats
-
registerSensor
protected io.tehuti.metrics.Sensor registerSensor(io.tehuti.metrics.NamedMeasurableStat... stats)
- Overrides:
registerSensor
in classAbstractVeniceStats
-
registerSensorWithDetailedPercentiles
protected io.tehuti.metrics.Sensor registerSensorWithDetailedPercentiles(java.lang.String sensorName, io.tehuti.metrics.MeasurableStat... stats)
By default, this function will prepend the request type to the sensor name, and register percentiles with the same name. TODO: Make all uses of percentiles do this, instead of calling directly :TehutiUtils.getPercentileStatForNetworkLatency(String, String)
-
-