Interface MetricsContext

All Known Implementing Classes:

public interface MetricsContext
MetricsContext encapsulates additional contextLabels about metrics exposed via a MetricsReporter The contextLabels map provides following information: - a _namespace field indicating the component exposing metrics e.g. kafka.server, kafka.consumer JmxReporter uses 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.= - for kafka brokers:, - for connect workers:,
  • Field Summary

    Modifier and Type Field Description
    static String NAMESPACE  
  • Method Summary

    Modifier and Type Method Description
    Map<String,​String> contextLabels()
    Returns the labels for this metrics context.
  • Field Details

  • Method Details

    • contextLabels

      Map<String,​String> contextLabels()
      Returns the labels for this metrics context.
      the map of label keys and values; never null but possibly empty