Class ClientLabels

java.lang.Object
io.confluent.telemetry.emitter.ClientLabels

public class ClientLabels extends Object
The ClientLabels class provides functionality to extract and clean up metric labels. It is stateless and offers methods to add labels to different levels of metrics.

The structure of the metrics is as follows:

    Metric
        - Resource
            - // Here add resource level labels which are available with `resource.` prefix in Druid
        - ScopeMetric
            - Metric
                - Gauge|Sum
                    - NumberDataPoint
                        - // Here add scope level labels which are available as top-level labels in Druid
                    - NumberDataPoint
                - Gauge|Sum
            - Metric
        - ScopeMetric
  • Constructor Details

    • ClientLabels

      public ClientLabels()
  • Method Details