-
- All Implemented Interfaces:
@Path(value = "/metrics") public class PrometheusA REST endpoint exposing JVB stats for Prometheus. Any scraper supporting Prometheus' text-based formats (
text/plain; version=0.0.4or OpenMetrics) is compatible with this/metricsendpoint. JSON is provided when the client performs a request with the 'Accept' header set toapplication/json. The response defaults totext/plain; version=0.0.4formatted output.
-
-
Constructor Summary
Constructors Constructor Description Prometheus(MetricsContainer metricsContainer)
-
Method Summary
Modifier and Type Method Description StringgetPrometheusPlainText()StringgetPrometheusOpenMetrics()StringgetJsonString()-
-
Constructor Detail
-
Prometheus
Prometheus(MetricsContainer metricsContainer)
-
-
Method Detail
-
getPrometheusPlainText
@GET()@Produces(value = TextFormat.CONTENT_TYPE_004) String getPrometheusPlainText()
-
getPrometheusOpenMetrics
@GET()@Produces(value = TextFormat.CONTENT_TYPE_OPENMETRICS_100) String getPrometheusOpenMetrics()
-
getJsonString
@GET()@Produces(value = MediaType.APPLICATION_JSON) String getJsonString()
-
-
-
-