Interface MetricServer
-
public interface MetricServer
AMetricServer
acts as the bootstrap for metric exporters that useMetricProducer
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 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
-
-