Interface MetricServer


  • public interface MetricServer
    A MetricServer acts as the bootstrap for metric exporters that use MetricProducer to consume the metrics.

    Multiple names are useful for enabling a pair of span and metric exporters using the same name, while still having separate names for enabling them individually.

    Implementation of MetricServer must be registered through the Java SPI framework.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Set<String> getNames()
      Returns names of metric servers supported by this factory.
      void start​(io.opentelemetry.sdk.metrics.export.MetricProducer producer, Properties config)
      Start the metric server that pulls metric from the MetricProducer.
    • Method Detail

      • start

        void start​(io.opentelemetry.sdk.metrics.export.MetricProducer producer,
                   Properties config)
        Start the metric server that pulls metric from the MetricProducer.
        Parameters:
        producer - The metric producer
        config - The configuration
      • getNames

        Set<String> getNames()
        Returns names of metric servers supported by this factory.
        Returns:
        The metric server names supported by this factory