Enum Class MetricNameStyle

java.lang.Object
java.lang.Enum<MetricNameStyle>
io.micronaut.configuration.kafka.metrics.MetricNameStyle
All Implemented Interfaces:
Serializable, Comparable<MetricNameStyle>, Constable

public enum MetricNameStyle extends Enum<MetricNameStyle>
Supported Kafka client metric naming styles.
Since:
5.0
Author:
graemerocher
  • Enum Constant Details

    • MICROMETER

      public static final MetricNameStyle MICROMETER
      Use Micrometer compatible metric names such as kafka.consumer.fetch.manager.bytes.consumed.total.
    • LEGACY

      public static final MetricNameStyle LEGACY
      Preserve the legacy Micronaut metric names such as kafka.consumer.bytes-consumed-total.
  • Method Details

    • values

      public static MetricNameStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetricNameStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static MetricNameStyle parse(String value)
      Parameters:
      value - The configured value
      Returns:
      The matching metric name style