public static class IipEcospherePrometheusExporter.RegistryServlet
extends javax.servlet.http.HttpServlet
IipEcospherePrometheusExporter.PrometheusMetricsServlet (unfortunately not much reusable), but with definable registry suitable
for our purposes.| Modifier and Type | Field and Description |
|---|---|
private io.micrometer.prometheus.PrometheusMeterRegistry |
registry |
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
private |
RegistryServlet(io.micrometer.prometheus.PrometheusMeterRegistry registry)
Creates the servlet instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
static Set<String> |
parseNames(javax.servlet.http.HttpServletRequest req)
Parses the requested names from the request.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
private io.micrometer.prometheus.PrometheusMeterRegistry registry
private RegistryServlet(io.micrometer.prometheus.PrometheusMeterRegistry registry)
registry - the registry.public static Set<String> parseNames(javax.servlet.http.HttpServletRequest req)
req - the requestprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
doPost in class javax.servlet.http.HttpServletIOExceptionCopyright © 2022. All rights reserved.