public class PrometheusServer extends Object
Example Usage:
HTTPServer server = new HTTPServer(1234);
| Modifier and Type | Field and Description |
|---|---|
protected static com.github.johrstrom.listener.PrometheusServer.HTTPMetricHandler |
metricHandler |
static String |
PROMETHEUS_DELAY |
static int |
PROMETHEUS_DELAY_DEFAULT |
static String |
PROMETHEUS_PORT |
static int |
PROMETHEUS_PORT_DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
static PrometheusServer |
getInstance() |
protected static Set<String> |
parseQuery(String query) |
protected static boolean |
shouldUseCompression(com.sun.net.httpserver.HttpExchange exchange) |
void |
start() |
void |
stop() |
public static final String PROMETHEUS_PORT
public static final int PROMETHEUS_PORT_DEFAULT
public static final String PROMETHEUS_DELAY
public static final int PROMETHEUS_DELAY_DEFAULT
protected static final com.github.johrstrom.listener.PrometheusServer.HTTPMetricHandler metricHandler
protected static boolean shouldUseCompression(com.sun.net.httpserver.HttpExchange exchange)
protected static Set<String> parseQuery(String query) throws IOException
IOExceptionpublic static PrometheusServer getInstance()
public void start()
throws IOException
IOExceptionpublic void stop()
Copyright © 2019. All rights reserved.