Class PrometheusHadoopServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.hbase.http.prometheus.PrometheusHadoopServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) (package private) static String
toPrometheusName
(String metricRecordName, String metricName) (package private) void
writeMetrics
(Writer writer, boolean descriptionEnabled, String queryParam) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
SPLIT_PATTERN
-
-
Constructor Details
-
PrometheusHadoopServlet
public PrometheusHadoopServlet()
-
-
Method Details
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
toPrometheusName
-
writeMetrics
- Throws:
IOException
-