Enum MetricType
- java.lang.Object
-
- java.lang.Enum<MetricType>
-
- com.linkedin.venice.stats.metrics.MetricType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MetricType>
public enum MetricType extends java.lang.Enum<MetricType>
Metric type enum to define the type of metrics Venice supports via OpenTelemetry
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNTER
For Counter: A simple counter that can be added to.HISTOGRAM
Use Histogram to get percentiles/min/max/count/sum and other aggregates: can be configured to be exponential or explicit bucket
checkVeniceMetricsConfig.Builder.extractAndSetOtelConfigs(java.util.Map<java.lang.String, java.lang.String>)
for more detailsMIN_MAX_COUNT_SUM_AGGREGATIONS
To get min/max/count/sum aggregation without the memory overhead to calculate percentiles, use Otel Explicit bucket Histogram but without buckets .
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetricType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MetricType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HISTOGRAM
public static final MetricType HISTOGRAM
Use Histogram to get percentiles/min/max/count/sum and other aggregates: can be configured to be exponential or explicit bucket
checkVeniceMetricsConfig.Builder.extractAndSetOtelConfigs(java.util.Map<java.lang.String, java.lang.String>)
for more details
-
MIN_MAX_COUNT_SUM_AGGREGATIONS
public static final MetricType MIN_MAX_COUNT_SUM_AGGREGATIONS
To get min/max/count/sum aggregation without the memory overhead to calculate percentiles, use Otel Explicit bucket Histogram but without buckets . checkVeniceOpenTelemetryMetricsRepository.createHistogram(com.linkedin.venice.stats.metrics.MetricEntity)
andVeniceOpenTelemetryMetricsRepository.setExponentialHistogramAggregation(io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder, com.linkedin.venice.stats.VeniceMetricsConfig)
for more details
-
COUNTER
public static final MetricType COUNTER
For Counter: A simple counter that can be added to.
-
-
Method Detail
-
values
public static MetricType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetricType c : MetricType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-