Class AbstractVeniceHttpStats

    • 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 class AbstractVeniceStats
        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 class AbstractVeniceStats
      • registerSensor

        protected io.tehuti.metrics.Sensor registerSensor​(io.tehuti.metrics.NamedMeasurableStat... stats)
        Overrides:
        registerSensor in class AbstractVeniceStats
      • 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)