Interface Metrics.Builder<B extends Metrics.Builder<B>>

Type Parameters:
B - type of concrete Builder
All Known Subinterfaces:
Metrics.SessionMetricCollector.Builder, Metrics.TopicMetricCollector.Builder
Enclosing interface:
Metrics

public static interface Metrics.Builder<B extends Metrics.Builder<B>>
Common interface for metric collector builders.
Since:
6.8
  • Method Summary

    Modifier and Type
    Method
    Description
    exportToPrometheus(boolean export)
    Specifies whether the metric collector should export metrics to Prometheus or not.
    maximumGroups(int limit)
    Set the maximum number of groups maintained by the metric collector.
    Reset the builder.
  • Method Details

    • reset

      B reset()
      Reset the builder.
      Returns:
      this Builder
    • exportToPrometheus

      B exportToPrometheus(boolean export)
      Specifies whether the metric collector should export metrics to Prometheus or not.

      By default, metrics are not exported to Prometheus.

      Parameters:
      export - true to export metrics to Prometheus
      Returns:
      this builder
    • maximumGroups

      B maximumGroups(int limit)
      Set the maximum number of groups maintained by the metric collector.

      By default, the number of groups is not limited.

      Parameters:
      limit - a positive integer
      Returns:
      the maximum number of groups
      Since:
      6.8
      See Also: