public class MetricsServlet extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
MetricsServlet()
Construct a MetricsServlet for the default registry.
|
MetricsServlet(io.prometheus.client.CollectorRegistry registry)
Construct a MetricsServlet for the given registry.
|
| 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) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic MetricsServlet()
public MetricsServlet(io.prometheus.client.CollectorRegistry registry)
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2018. All rights reserved.