Create a new TopicMetricCollector using the values currently known to this builder.
the name of the TopicMetricCollector
the selector pattern that specifies the topics for which metrics are to be collected
a new TopicMetricCollector with all of the current settings of this builder
Specifies whether the metric collector should export metrics to Prometheus or not.
The default is that metrics are not exported to Prometheus.
Specifies the number of leading parts of the topic path the metric collector should use to group results.
By default a topic metric collector does not group by the topic path prefix. If a positive number of parts is specified, it will enable grouping.
the number of leading parts of the topic path to group by; set to 0 to disable grouping by path
Specifies whether the metric collector should group by topic type.
By default a topic metric collector does not group by topic type.
true to indicate that the collector should group by topic type
Set the maximum number of groups maintained by the metric collector.
By default, the number of groups is not limited.
a positive integer
Reset the builder.