Package com.linkedin.venice.stats
Class VeniceMetricsRepository
- java.lang.Object
-
- io.tehuti.metrics.MetricsRepository
-
- com.linkedin.venice.stats.VeniceMetricsRepository
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class VeniceMetricsRepository extends io.tehuti.metrics.MetricsRepository implements java.io.Closeable
Repository to hold both tehuti and OpenTelemetry metrics. This class extendsMetricsRepository
to keep the changes to a minimum and to avoid a breaking change.
Once all components are migrated to use this class: make this class addMetricsRepository
as a member variable and delegate all tehuti calls to it.
-
-
Constructor Summary
Constructors Constructor Description VeniceMetricsRepository()
VeniceMetricsRepository(VeniceMetricsConfig veniceMetricsConfig)
VeniceMetricsRepository(VeniceMetricsConfig veniceMetricsConfig, VeniceOpenTelemetryMetricsRepository openTelemetryMetricsRepository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
VeniceOpenTelemetryMetricsRepository
getOpenTelemetryMetricsRepository()
VeniceMetricsConfig
getVeniceMetricsConfig()
static VeniceMetricsRepository
getVeniceMetricsRepository(java.lang.String serviceName, java.lang.String metricPrefix, java.util.Collection<MetricEntity> metricEntities, java.util.Map<java.lang.String,java.lang.String> configs)
-
-
-
Constructor Detail
-
VeniceMetricsRepository
public VeniceMetricsRepository()
-
VeniceMetricsRepository
public VeniceMetricsRepository(VeniceMetricsConfig veniceMetricsConfig)
-
VeniceMetricsRepository
public VeniceMetricsRepository(VeniceMetricsConfig veniceMetricsConfig, VeniceOpenTelemetryMetricsRepository openTelemetryMetricsRepository)
-
-
Method Detail
-
getOpenTelemetryMetricsRepository
public VeniceOpenTelemetryMetricsRepository getOpenTelemetryMetricsRepository()
-
getVeniceMetricsConfig
public VeniceMetricsConfig getVeniceMetricsConfig()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classio.tehuti.metrics.MetricsRepository
-
getVeniceMetricsRepository
public static VeniceMetricsRepository getVeniceMetricsRepository(java.lang.String serviceName, java.lang.String metricPrefix, java.util.Collection<MetricEntity> metricEntities, java.util.Map<java.lang.String,java.lang.String> configs)
-
-