Package org.apache.pinot.common.metrics
Class ServerMetrics
- java.lang.Object
-
- org.apache.pinot.common.metrics.AbstractMetrics<ServerQueryPhase,ServerMeter,ServerGauge,ServerTimer>
-
- org.apache.pinot.common.metrics.ServerMetrics
-
public class ServerMetrics extends AbstractMetrics<ServerQueryPhase,ServerMeter,ServerGauge,ServerTimer>
Utility class to centralize all metrics reporting for the Pinot server.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pinot.common.metrics.AbstractMetrics
AbstractMetrics.Gauge, AbstractMetrics.Meter, AbstractMetrics.QueryPhase, AbstractMetrics.Timer
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.common.metrics.AbstractMetrics
_metricPrefix, _metricsRegistry
-
-
Constructor Summary
Constructors Constructor Description ServerMetrics(String prefix, PinotMetricsRegistry metricsRegistry, boolean isTableLevelMetricsEnabled, Collection<String> allowedTables)ServerMetrics(PinotMetricsRegistry metricsRegistry)ServerMetrics(PinotMetricsRegistry metricsRegistry, boolean isTableLevelMetricsEnabled, Collection<String> allowedTables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServerGauge[]getGauges()protected ServerMeter[]getMeters()protected ServerQueryPhase[]getQueryPhases()-
Methods inherited from class org.apache.pinot.common.metrics.AbstractMetrics
addCallbackGauge, addCallbackGaugeIfNeeded, addCallbackTableGaugeIfNeeded, addMeteredGlobalValue, addMeteredGlobalValue, addMeteredTableValue, addMeteredTableValue, addPhaseTiming, addPhaseTiming, addTimedTableValue, addTimedValue, addValueToGlobalGauge, addValueToTableGauge, containsGauge, getMeteredTableValue, getMetricsRegistry, getTableName, getValueOfGlobalGauge, getValueOfGlobalGauge, getValueOfTableGauge, initializeGlobalMeters, removeGauge, removeTableGauge, setValueOfGlobalGauge, setValueOfGlobalGauge, setValueOfPartitionGauge, setValueOfTableGauge
-
-
-
-
Constructor Detail
-
ServerMetrics
public ServerMetrics(PinotMetricsRegistry metricsRegistry)
-
ServerMetrics
public ServerMetrics(PinotMetricsRegistry metricsRegistry, boolean isTableLevelMetricsEnabled, Collection<String> allowedTables)
-
ServerMetrics
public ServerMetrics(String prefix, PinotMetricsRegistry metricsRegistry, boolean isTableLevelMetricsEnabled, Collection<String> allowedTables)
-
-
Method Detail
-
getQueryPhases
protected ServerQueryPhase[] getQueryPhases()
- Specified by:
getQueryPhasesin classAbstractMetrics<ServerQueryPhase,ServerMeter,ServerGauge,ServerTimer>
-
getMeters
protected ServerMeter[] getMeters()
- Specified by:
getMetersin classAbstractMetrics<ServerQueryPhase,ServerMeter,ServerGauge,ServerTimer>
-
getGauges
protected ServerGauge[] getGauges()
- Specified by:
getGaugesin classAbstractMetrics<ServerQueryPhase,ServerMeter,ServerGauge,ServerTimer>
-
-