Class MetricEntity
java.lang.Object
com.linkedin.venice.stats.metrics.MetricEntity
Metric entity class to define a metric with all its properties
-
Constructor Summary
ConstructorsConstructorDescriptionMetricEntity(String metricName, MetricType metricType, MetricUnit unit, String description, Set<VeniceMetricsDimensions> dimensionsList) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricEntitycreateWithCustomPrefix(String metricName, MetricType metricType, MetricUnit unit, String description, Set<VeniceMetricsDimensions> dimensionsList, String customMetricPrefix) Factory for metrics that have both dimensions AND a custom metric prefix (e.g.static MetricEntitycreateWithNoDimensions(String metricName, MetricType metricType, MetricUnit unit, String description) Factory method for metrics without dimensions.getUnit()
-
Constructor Details
-
MetricEntity
public MetricEntity(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description, @Nonnull Set<VeniceMetricsDimensions> dimensionsList)
-
-
Method Details
-
getMetricName
-
getMetricType
-
getUnit
-
getDescription
-
getDimensionsList
-
getCustomMetricPrefix
-
createWithNoDimensions
public static MetricEntity createWithNoDimensions(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description) Factory method for metrics without dimensions. These metrics should only be used withMetricEntityStateBase. -
createWithCustomPrefix
public static MetricEntity createWithCustomPrefix(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description, @Nonnull Set<VeniceMetricsDimensions> dimensionsList, @Nonnull String customMetricPrefix) Factory for metrics that have both dimensions AND a custom metric prefix (e.g. internal infrastructure counters inVeniceOpenTelemetryMetricsRepository.CommonMetricsEntity).
-