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 SummaryModifier and TypeMethodDescriptionexportToPrometheus(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()Reset the builder.
- 
Method Details- 
resetB reset()Reset the builder.- Returns:
- this Builder
 
- 
exportToPrometheusSpecifies 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
 
- 
maximumGroupsSet 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:
 
 
-