Index
All Classes and Interfaces|All Packages
A
- authenticator(Authenticator) - Method in class HTTPServer.Builder
-
Optional:
Authenticatorfor authentication.
B
- buildAndStart() - Method in class HTTPServer.Builder
-
Build and start the HTTPServer.
- builder() - Static method in class HTTPServer
- builder(PrometheusProperties) - Static method in class HTTPServer
C
- close() - Method in class HttpExchangeAdapter
- close() - Method in class HTTPServer
-
Stop the HTTPServer.
D
- defaultHandler(HttpHandler) - Method in class HTTPServer.Builder
-
Optional: Override default handler, i.e.
- DefaultHandler - Class in io.prometheus.metrics.exporter.httpserver
-
Handler for the / endpoint
- DefaultHandler() - Constructor for class DefaultHandler
E
- executorService(ExecutorService) - Method in class HTTPServer.Builder
-
Optional: ExecutorService used by the
httpServer.
G
- getHeaders(String) - Method in class HttpExchangeAdapter.HttpRequest
- getMethod() - Method in class HttpExchangeAdapter.HttpRequest
- getPort() - Method in class HTTPServer
-
Gets the port number.
- getQueryString() - Method in class HttpExchangeAdapter.HttpRequest
- getRequest() - Method in class HttpExchangeAdapter
- getResponse() - Method in class HttpExchangeAdapter
H
- handle(HttpExchange) - Method in class DefaultHandler
- handle(HttpExchange) - Method in class HealthyHandler
- handle(HttpExchange) - Method in class MetricsHandler
- handleException(IOException) - Method in class HttpExchangeAdapter
- handleException(RuntimeException) - Method in class HttpExchangeAdapter
- HealthyHandler - Class in io.prometheus.metrics.exporter.httpserver
-
Handler for the /-/healthy endpoint
- HealthyHandler() - Constructor for class HealthyHandler
- hostname(String) - Method in class HTTPServer.Builder
-
Use this hostname to resolve the IP address to bind to.
- HttpExchangeAdapter - Class in io.prometheus.metrics.exporter.httpserver
- HttpExchangeAdapter(HttpExchange) - Constructor for class HttpExchangeAdapter
- HttpExchangeAdapter.HttpRequest - Class in io.prometheus.metrics.exporter.httpserver
- HttpExchangeAdapter.HttpResponse - Class in io.prometheus.metrics.exporter.httpserver
- HttpRequest() - Constructor for class HttpExchangeAdapter.HttpRequest
- HttpResponse() - Constructor for class HttpExchangeAdapter.HttpResponse
- httpsConfigurator(HttpsConfigurator) - Method in class HTTPServer.Builder
-
Optional:
HttpsConfiguratorfor TLS/SSL - HTTPServer - Class in io.prometheus.metrics.exporter.httpserver
-
Expose Prometheus metrics using a plain Java HttpServer.
- HTTPServer.Builder - Class in io.prometheus.metrics.exporter.httpserver
I
- inetAddress(InetAddress) - Method in class HTTPServer.Builder
-
Bind to this IP address.
- io.prometheus.metrics.exporter.httpserver - package io.prometheus.metrics.exporter.httpserver
M
- MetricsHandler - Class in io.prometheus.metrics.exporter.httpserver
-
Handler for the /metrics endpoint
- MetricsHandler() - Constructor for class MetricsHandler
- MetricsHandler(PrometheusProperties) - Constructor for class MetricsHandler
- MetricsHandler(PrometheusProperties, PrometheusRegistry) - Constructor for class MetricsHandler
- MetricsHandler(PrometheusRegistry) - Constructor for class MetricsHandler
P
- port(int) - Method in class HTTPServer.Builder
-
Port to bind to.
R
- registry(PrometheusRegistry) - Method in class HTTPServer.Builder
-
Optional: Default is
PrometheusRegistry.defaultRegistry.
S
- sendHeadersAndGetBody(int, int) - Method in class HttpExchangeAdapter.HttpResponse
- setHeader(String, String) - Method in class HttpExchangeAdapter.HttpResponse
- stop() - Method in class HTTPServer
-
Stop the HTTP server.
All Classes and Interfaces|All Packages