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 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
-
reset
B reset()Reset the builder.- Returns:
- this Builder
-
exportToPrometheus
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
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:
-