Package com.linkedin.venice.stats
Class VeniceMetricsRepository
java.lang.Object
io.tehuti.metrics.MetricsRepository
com.linkedin.venice.stats.VeniceMetricsRepository
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class VeniceMetricsRepository
extends io.tehuti.metrics.MetricsRepository
implements Closeable
Repository to hold both tehuti and OpenTelemetry metrics.
This class extends
Once all components are migrated to use this class: make this class add
MetricsRepository
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 add
MetricsRepository
as a member variable and delegate all tehuti calls to it.-
Constructor Summary
ConstructorDescriptionVeniceMetricsRepository
(VeniceMetricsConfig veniceMetricsConfig) VeniceMetricsRepository
(VeniceMetricsConfig veniceMetricsConfig, VeniceOpenTelemetryMetricsRepository openTelemetryMetricsRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static VeniceMetricsRepository
getVeniceMetricsRepository
(String serviceName, String metricPrefix, Collection<MetricEntity> metricEntities, Map<String, String> configs) Methods inherited from class io.tehuti.metrics.MetricsRepository
addMetric, addMetric, addMetric, addMetric, addReporter, getAsyncGaugeExecutor, getMetric, getSensor, metrics, removeSensor, sensor, sensor, sensor
-
Constructor Details
-
VeniceMetricsRepository
public VeniceMetricsRepository() -
VeniceMetricsRepository
-
VeniceMetricsRepository
public VeniceMetricsRepository(VeniceMetricsConfig veniceMetricsConfig, VeniceOpenTelemetryMetricsRepository openTelemetryMetricsRepository)
-
-
Method Details
-
getOpenTelemetryMetricsRepository
-
getVeniceMetricsConfig
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classio.tehuti.metrics.MetricsRepository
-
getVeniceMetricsRepository
public static VeniceMetricsRepository getVeniceMetricsRepository(String serviceName, String metricPrefix, Collection<MetricEntity> metricEntities, Map<String, String> configs)
-