Class HelixGroupStats
java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.stats.routing.HelixGroupStats
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDynamic metric names for tehuti metrics used in this class.static enumMetric names for tehuti metrics used in this class. -
Field Summary
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionHelixGroupStats(io.tehuti.metrics.MetricsRepository metricsRepository) HelixGroupStats(io.tehuti.metrics.MetricsRepository metricsRepository, String prefix) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetGroupResponseWaitingTimeAvg(int groupId) doublegetRoutingLatencyAvg(int groupId, int keyCountBucket) Average measured routing latency (ms) forgroupIdin the given key-countbucket, or-1if the bucket has no sample yet.longgetRoutingLatencySampleCount(int groupId, int keyCountBucket) Number of routing-latency samples recorded forgroupIdin the given key-countbucket, or0if none.voidrecordGroupNum(int groupNum) voidrecordGroupPendingRequest(int groupId, int value) voidrecordGroupRequest(int groupId) voidrecordGroupResponseWaitingTime(int groupId, double responseWaitingTime) voidrecordRoutingLatency(int groupId, int keyCountBucket, double responseWaitingTime) Records a routing-latency sample forgroupIdinto the key-countbucketit belongs to (the bucket's inclusive lower bound, fromLatencyAdaptiveGroupSelector.bucketKeyForKeyCount(int)).Methods inherited from class com.linkedin.venice.stats.AbstractVeniceStats
avgAndMax, avgAndTotal, getMetricFullName, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotal, registerPerStoreAndTotalSensor, registerSensor, registerSensor, registerSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
-
Constructor Details
-
HelixGroupStats
public HelixGroupStats(io.tehuti.metrics.MetricsRepository metricsRepository) -
HelixGroupStats
-
-
Method Details
-
recordGroupNum
public void recordGroupNum(int groupNum) -
recordGroupRequest
public void recordGroupRequest(int groupId) -
recordGroupPendingRequest
public void recordGroupPendingRequest(int groupId, int value) -
recordGroupResponseWaitingTime
public void recordGroupResponseWaitingTime(int groupId, double responseWaitingTime) -
getGroupResponseWaitingTimeAvg
public double getGroupResponseWaitingTimeAvg(int groupId) -
recordRoutingLatency
public void recordRoutingLatency(int groupId, int keyCountBucket, double responseWaitingTime) Records a routing-latency sample forgroupIdinto the key-countbucketit belongs to (the bucket's inclusive lower bound, fromLatencyAdaptiveGroupSelector.bucketKeyForKeyCount(int)). Feeds only the latency-adaptive selector; the sharedrecordGroupResponseWaitingTime(int, double)signal is left untouched for least-loaded routing and existing dashboards. -
getRoutingLatencyAvg
public double getRoutingLatencyAvg(int groupId, int keyCountBucket) Average measured routing latency (ms) forgroupIdin the given key-countbucket, or-1if the bucket has no sample yet. MatchesLatencyAdaptiveGroupSelector.GroupBucketLatencyProvider. -
getRoutingLatencySampleCount
public long getRoutingLatencySampleCount(int groupId, int keyCountBucket) Number of routing-latency samples recorded forgroupIdin the given key-countbucket, or0if none. MatchesLatencyAdaptiveGroupSelector.GroupBucketSampleCountProviderand drives the selector's minimum-sample floor below which a bucket is treated as not yet measured for that group.
-