Package com.linkedin.venice.stats
Class ServerConnectionStats
java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.stats.ServerConnectionStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionServerConnectionStats(io.tehuti.metrics.MetricsRepository metricsRepository, String name, String clusterName) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidrecordNewConnectionSetupLatency(double latencyMs, VeniceConnectionSource source) Record the SSL handshake setup latency with connection source dimension.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
-
Field Details
-
ROUTER_CONNECTION_REQUEST
- See Also:
-
ROUTER_CONNECTION_COUNT_GAUGE
- See Also:
-
CLIENT_CONNECTION_REQUEST
- See Also:
-
CLIENT_CONNECTION_COUNT_GAUGE
- See Also:
-
CONNECTION_REQUEST
- See Also:
-
NEW_CONNECTION_SETUP_LATENCY
- See Also:
-
-
Constructor Details
-
ServerConnectionStats
-
-
Method Details
-
incrementRouterConnectionCount
public void incrementRouterConnectionCount() -
decrementRouterConnectionCount
public void decrementRouterConnectionCount() -
incrementClientConnectionCount
public void incrementClientConnectionCount() -
decrementClientConnectionCount
public void decrementClientConnectionCount() -
newConnectionRequest
public void newConnectionRequest() -
recordNewConnectionSetupLatency
Record the SSL handshake setup latency with connection source dimension. Called from the background scanner thread (same place as connection count metrics) after the connection source is identified via principal extraction.- Parameters:
latencyMs- the setup latency in milliseconds, computed at handshake completionsource- whether the connection is from a router or a client
-