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.IOException
public java.net.InetSocketAddress getAddress()
public void stop()
PrometheusExporter
stop
in interface PrometheusExporter
Cinnamon API. Copyright (c) 2015–2021 Lightbend.