Interface MetricServer
-
public interface MetricServerAMetricServeracts as the bootstrap for metric exporters that useMetricProducerto 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
MetricServermust 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.voidstart(io.opentelemetry.sdk.metrics.export.MetricProducer producer, Properties config)Start the metric server that pulls metric from theMetricProducer.
-
-
-
Method Detail
-
start
void start(io.opentelemetry.sdk.metrics.export.MetricProducer producer, Properties config)Start the metric server that pulls metric from theMetricProducer.- Parameters:
producer- The metric producerconfig- The configuration
-
-