Package com.linkedin.venice.stats
Class VeniceMetricsConfig.Builder
java.lang.Object
com.linkedin.venice.stats.VeniceMetricsConfig.Builder
- Enclosing class:
- VeniceMetricsConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
extractAndSetOtelConfigs
(Map<String, String> configs) Extract and set otel configssetEmitOtelMetrics
(boolean emitOtelMetrics) setExportOtelMetricsToEndpoint
(boolean exportOtelMetricsToEndpoint) setExportOtelMetricsToLog
(boolean exportOtelMetricsToLog) setMetricEntities
(Collection<MetricEntity> metricEntities) setMetricNamingFormat
(VeniceOpenTelemetryMetricNamingFormat metricNamingFormat) setMetricPrefix
(String metricPrefix) setOtelAggregationTemporalitySelector
(io.opentelemetry.sdk.metrics.export.AggregationTemporalitySelector otelAggregationTemporalitySelector) setOtelEndpoint
(String otelEndpoint) setOtelExponentialHistogramMaxBuckets
(int otelExponentialHistogramMaxBuckets) setOtelExponentialHistogramMaxScale
(int otelExponentialHistogramMaxScale) setOtelExportProtocol
(String otelExportProtocol) setServiceName
(String serviceName) setTehutiMetricConfig
(io.tehuti.metrics.MetricConfig tehutiMetricConfig) setUseOtelExponentialHistogram
(boolean useOtelExponentialHistogram)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setServiceName
-
setMetricPrefix
-
setMetricEntities
-
setEmitOtelMetrics
-
setExportOtelMetricsToEndpoint
public VeniceMetricsConfig.Builder setExportOtelMetricsToEndpoint(boolean exportOtelMetricsToEndpoint) -
setOtelExportProtocol
-
setOtelEndpoint
-
setExportOtelMetricsToLog
-
setMetricNamingFormat
public VeniceMetricsConfig.Builder setMetricNamingFormat(VeniceOpenTelemetryMetricNamingFormat metricNamingFormat) -
setOtelAggregationTemporalitySelector
public VeniceMetricsConfig.Builder setOtelAggregationTemporalitySelector(io.opentelemetry.sdk.metrics.export.AggregationTemporalitySelector otelAggregationTemporalitySelector) -
setUseOtelExponentialHistogram
public VeniceMetricsConfig.Builder setUseOtelExponentialHistogram(boolean useOtelExponentialHistogram) -
setOtelExponentialHistogramMaxScale
public VeniceMetricsConfig.Builder setOtelExponentialHistogramMaxScale(int otelExponentialHistogramMaxScale) -
setOtelExponentialHistogramMaxBuckets
public VeniceMetricsConfig.Builder setOtelExponentialHistogramMaxBuckets(int otelExponentialHistogramMaxBuckets) -
extractAndSetOtelConfigs
Extract and set otel configs -
setTehutiMetricConfig
public VeniceMetricsConfig.Builder setTehutiMetricConfig(io.tehuti.metrics.MetricConfig tehutiMetricConfig) -
build
-