public final class PrometheusHttpServer extends java.lang.Object implements PrometheusExporter
Integrates with the HTTP server from the Prometheus JVM client.
| Constructor and Description |
|---|
PrometheusHttpServer(io.prometheus.client.CollectorRegistry registry,
com.typesafe.config.Config config,
LoggingProvider logging) |
| Modifier and Type | Method and Description |
|---|---|
java.net.InetSocketAddress |
getAddress() |
void |
stop()
Stop this exporter.
|
public PrometheusHttpServer(io.prometheus.client.CollectorRegistry registry,
com.typesafe.config.Config config,
LoggingProvider logging)
throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getAddress()
public void stop()
PrometheusExporterstop in interface PrometheusExporterCinnamon API. Copyright (c) 2015–2021 Lightbend.