Class MetricsWebService
java.lang.Object
ubic.gemma.rest.monitoring.MetricsWebService
Prometheus-format metrics scrape endpoint at
/rest/v2/metrics. Token-gated: callers
must present the value of gemma.metrics.scrapeToken in the X-Scrape-Token
header. When the property is unset (empty), the endpoint returns 404 (metrics disabled)
so production cannot accidentally leak per-route timings.
The Prometheus registry bean is optional: if the metrics Spring profile is not
active there is no registry, and this resource returns 503 with a short text body.
- Author:
- Phase 3 actuator wiring
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MetricsWebService
public MetricsWebService()
-
-
Method Details
-
scrape
@GET @Produces("text/plain; version=0.0.4; charset=utf-8") public jakarta.ws.rs.core.Response scrape(@HeaderParam("X-Scrape-Token") String presentedToken)
-