Interface Metrics.TopicMetricCollector
- All Superinterfaces:
Metrics.MetricCollector
- Enclosing interface:
- Metrics
The definition of a topic metric collector.
These can be configured to record metric data for a subset of all topics, specified with a topic selector.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA topic metric collector builder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the topic selector.intReturns the number of leading parts of the topic path to group by.booleanIndicates whether the collector groups by topic type.booleanIndicates whether the collector groups by topic view.Methods inherited from interface com.pushtechnology.diffusion.client.features.control.Metrics.MetricCollector
exportsToPrometheus, getName, maximumGroups
-
Method Details
-
getTopicSelector
String getTopicSelector()Returns the topic selector.- Returns:
- topic selector
-
groupsByTopicType
boolean groupsByTopicType()Indicates whether the collector groups by topic type.- Returns:
- true if grouping by topic type
-
groupsByTopicView
boolean groupsByTopicView()Indicates whether the collector groups by topic view.- Returns:
- true if grouping by topic view
- Since:
- 6.9
-
groupByPathPrefixParts
int groupByPathPrefixParts()Returns the number of leading parts of the topic path to group by.- Returns:
- the number of leading parts of the topic path to group by, or 0 if the collector does not group by path prefix
- Since:
- 6.8
-