Class PrometheusHttpServerBuilder
java.lang.Object
io.opentelemetry.exporter.prometheus.PrometheusHttpServerBuilder
A builder for
PrometheusHttpServer.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newPrometheusHttpServerwith the configuration of this builder which can be registered with aSdkMeterProvider.setExecutor(ExecutorService executor) Sets theExecutorServiceto be used forPrometheusHttpServer.Sets the host to bind to.setPort(int port) Sets the port to bind to.
-
Method Details
-
setHost
Sets the host to bind to. If unset, defaults to "0.0.0.0". -
setPort
Sets the port to bind to. If unset, defaults to 9464. -
setExecutor
Sets theExecutorServiceto be used forPrometheusHttpServer. -
build
Returns a newPrometheusHttpServerwith the configuration of this builder which can be registered with aSdkMeterProvider.
-