Interface MetricsContext
- All Known Implementing Classes:
KafkaMetricsContext
public interface MetricsContext
MetricsContext encapsulates additional contextLabels about metrics exposed via a
MetricsReporterThe contextLabels() map provides following information:
- in all components
- a
_namespacefield indicating the component exposing metrics e.g. kafka.server, kafka.consumer. TheJmxReporteruses this as prefix for MBean names - for clients and streams libraries
- any freeform fields passed in via client properties in the form of
metrics.context.<key>=<value> - for kafka brokers
- kafka.broker.id, kafka.cluster.id
- for connect workers
- connect.kafka.cluster.id, connect.group.id
Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionReturns the labels for this metrics context.
Field Details
NAMESPACE
- See Also:
Method Details
contextLabels