Class MetricEntity

java.lang.Object
com.linkedin.venice.stats.metrics.MetricEntity

public class MetricEntity extends Object
Metric entity class to define a metric with all its properties
  • Constructor Details

  • Method Details

    • getMetricName

      @Nonnull public String getMetricName()
    • getMetricType

      @Nonnull public MetricType getMetricType()
    • getUnit

      @Nonnull public MetricUnit getUnit()
    • getDescription

      @Nonnull public String getDescription()
    • getDimensionsList

      @Nonnull public Set<VeniceMetricsDimensions> getDimensionsList()
    • getCustomMetricPrefix

      @Nullable public String 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 with MetricEntityStateBase.
    • 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 in VeniceOpenTelemetryMetricsRepository.CommonMetricsEntity).