Class MetricsRepositoryUtils


  • public class MetricsRepositoryUtils
    extends java.lang.Object
    Utility functions to help create common metrics repository.
    • Constructor Detail

      • MetricsRepositoryUtils

        public MetricsRepositoryUtils()
    • Method Detail

      • createMultiThreadedMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createMultiThreadedMetricsRepository()
      • createSingleThreadedMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createSingleThreadedMetricsRepository()
      • createSingleThreadedMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createSingleThreadedMetricsRepository​(long maxMetricsMeasurementTimeoutMs,
                                                                                                long initialMetricsMeasurementTimeoutMs)
      • createSingleThreadedVeniceMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createSingleThreadedVeniceMetricsRepository()
      • createSingleThreadedVeniceMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createSingleThreadedVeniceMetricsRepository​(boolean isOtelEnabled,
                                                                                                      VeniceOpenTelemetryMetricNamingFormat otelFormat,
                                                                                                      java.util.Collection<MetricEntity> metricEntities)
      • createSingleThreadedVeniceMetricsRepository

        public static io.tehuti.metrics.MetricsRepository createSingleThreadedVeniceMetricsRepository​(long maxMetricsMeasurementTimeoutMs,
                                                                                                      long initialMetricsMeasurementTimeoutMs,
                                                                                                      boolean isOtelEnabled,
                                                                                                      VeniceOpenTelemetryMetricNamingFormat otelFormat,
                                                                                                      java.util.Collection<MetricEntity> metricEntities)
      • getMetricConfig

        public static io.tehuti.metrics.MetricConfig getMetricConfig​(long maxMetricsMeasurementTimeoutMs,
                                                                     long initialMetricsMeasurementTimeoutMs)