public final class PrometheusExpositionService extends AbstractHttpService
| Constructor and Description |
|---|
PrometheusExpositionService(CollectorRegistry collectorRegistry)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
doGet(ServiceRequestContext ctx,
HttpRequest req)
Handles a
GET request. |
protected HttpResponse |
doPost(ServiceRequestContext ctx,
HttpRequest req)
Handles a
POST request. |
doDelete, doDelete, doGet, doHead, doHead, doOptions, doOptions, doPatch, doPatch, doPost, doPut, doPut, doTrace, doTrace, serveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorate, decorateas, decorate, serviceAdded, shouldCachePathpublic PrometheusExpositionService(CollectorRegistry collectorRegistry)
collectorRegistry - Prometheus registryprotected HttpResponse doGet(ServiceRequestContext ctx, HttpRequest req) throws Exception
AbstractHttpServiceGET request.
This method sends a 405 Method Not Allowed response by default.doGet in class AbstractHttpServiceExceptionprotected HttpResponse doPost(ServiceRequestContext ctx, HttpRequest req) throws Exception
AbstractHttpServicePOST request.
This method sends a 405 Method Not Allowed response by default.doPost in class AbstractHttpServiceExceptionCopyright © 2020 LeanCloud. All rights reserved.