public static interface Metrics.TopicMetricCollector.Builder extends Metrics.Builder<Metrics.TopicMetricCollector.Builder>
A builder of this type may be created using
newTopicMetricCollectorBuilder and used to create instances of
Metrics.TopicMetricCollector that can be supplied to
putTopicMetricCollector.
| Modifier and Type | Method and Description |
|---|---|
Metrics.TopicMetricCollector |
create(String name,
String topicSelector)
Create a new
Metrics.TopicMetricCollector using the values
currently known to this builder. |
Metrics.TopicMetricCollector.Builder |
groupByPathPrefixParts(int parts)
Specifies the number of leading parts of the topic path the
metric collector should use to group results.
|
Metrics.TopicMetricCollector.Builder |
groupByTopicType(boolean groupByTopicType)
Specifies whether the metric collector should group by topic
type.
|
Metrics.TopicMetricCollector.Builder |
groupByTopicView(boolean groupByTopicView)
Specifies whether the metric collector should group by topic view.
|
exportToPrometheus, maximumGroups, resetMetrics.TopicMetricCollector.Builder groupByTopicType(boolean groupByTopicType)
By default a topic metric collector does not group by topic type.
groupByTopicType - true to indicate that the collector
should group by topic typeMetrics.TopicMetricCollector.Builder groupByPathPrefixParts(int parts)
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.
parts - the number of leading parts of the topic path to
group by; set to 0 to disable grouping by pathMetrics.TopicMetricCollector.Builder groupByTopicView(boolean groupByTopicView)
By default a topic metric collector does not group by topic view.
groupByTopicView - true to indicate that the collector should group by topic viewMetrics.TopicMetricCollector create(String name, String topicSelector)
Metrics.TopicMetricCollector using the values
currently known to this builder.name - the name of the Metrics.TopicMetricCollectortopicSelector - the selector pattern that specifies the
topics for which metrics are to be collectedMetrics.TopicMetricCollector with all of the
current settings of this builderIllegalArgumentException - if this builder has been
configured using groupByPathPrefixParts(int) and
a negative number of partsCopyright © 2024 DiffusionData Limited. All rights reserved.