public static interface 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 |
exportToPrometheus(boolean export)
Specifies whether the metric collector should export metrics to
Prometheus or not.
|
Metrics.TopicMetricCollector.Builder |
groupByTopicType(boolean groupByTopicType)
Specifies whether the metric collector should group by topic
type.
|
Metrics.TopicMetricCollector.Builder |
reset()
Reset the builder.
|
Metrics.TopicMetricCollector.Builder exportToPrometheus(boolean export)
The default is that metrics are not exported to Prometheus.
export
- true to export metrics to PrometheusMetrics.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 reset()
Metrics.TopicMetricCollector create(String name, String topicSelector)
Metrics.TopicMetricCollector
using the values
currently known to this builder.name
- the name of the Metrics.TopicMetricCollector
topicSelector
- the selector pattern that specifies the
topics for which metrics are to be collectedMetrics.TopicMetricCollector
with all of the
current settings of this builderCopyright © 2021 Push Technology Ltd. All Rights Reserved.