Package com.linkedin.venice.stats
Class VeniceMetricsConfig.Builder
- java.lang.Object
-
- com.linkedin.venice.stats.VeniceMetricsConfig.Builder
-
- Enclosing class:
- VeniceMetricsConfig
public static class VeniceMetricsConfig.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
setServiceName
public VeniceMetricsConfig.Builder setServiceName(java.lang.String serviceName)
-
setMetricPrefix
public VeniceMetricsConfig.Builder setMetricPrefix(java.lang.String metricPrefix)
-
setMetricEntities
public VeniceMetricsConfig.Builder setMetricEntities(java.util.Collection<MetricEntity> metricEntities)
-
setEmitOtelMetrics
public VeniceMetricsConfig.Builder setEmitOtelMetrics(boolean emitOtelMetrics)
-
setExportOtelMetricsToEndpoint
public VeniceMetricsConfig.Builder setExportOtelMetricsToEndpoint(boolean exportOtelMetricsToEndpoint)
-
setOtelExportProtocol
public VeniceMetricsConfig.Builder setOtelExportProtocol(java.lang.String otelExportProtocol)
-
setOtelEndpoint
public VeniceMetricsConfig.Builder setOtelEndpoint(java.lang.String otelEndpoint)
-
setExportOtelMetricsToLog
public VeniceMetricsConfig.Builder setExportOtelMetricsToLog(boolean exportOtelMetricsToLog)
-
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
public VeniceMetricsConfig.Builder extractAndSetOtelConfigs(java.util.Map<java.lang.String,java.lang.String> configs)
Extract and set otel configs
-
setTehutiMetricConfig
public VeniceMetricsConfig.Builder setTehutiMetricConfig(io.tehuti.metrics.MetricConfig tehutiMetricConfig)
-
build
public VeniceMetricsConfig build()
-
-