Class PrometheusHttpServer
- java.lang.Object
-
- com.lightbend.cinnamon.prometheus.httpserver.PrometheusHttpServer
-
- All Implemented Interfaces:
PrometheusExporter
public final class PrometheusHttpServer extends java.lang.Object implements PrometheusExporter
Prometheus HTTP server for exporting Cinnamon metrics in the Prometheus metric format.Integrates with the HTTP server from the Prometheus JVM client.
-
-
Constructor Summary
Constructors Constructor Description PrometheusHttpServer(io.prometheus.client.CollectorRegistry registry, com.typesafe.config.Config config, LoggingProvider logging)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetSocketAddress
getAddress()
void
stop()
Stop this exporter.
-
-
-
Constructor Detail
-
PrometheusHttpServer
public PrometheusHttpServer(io.prometheus.client.CollectorRegistry registry, com.typesafe.config.Config config, LoggingProvider logging) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getAddress
public java.net.InetSocketAddress getAddress()
-
stop
public void stop()
Description copied from interface:PrometheusExporter
Stop this exporter. Called when the Cinnamon Prometheus backend is shutting down.- Specified by:
stop
in interfacePrometheusExporter
-
-