Class PrometheusExpositionService
java.lang.Object
com.linecorp.armeria.server.AbstractHttpService
com.linecorp.armeria.server.metric.PrometheusExpositionService
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,
,HttpResponse> TransientHttpService
,TransientService<HttpRequest,
HttpResponse>
@Deprecated
public final class PrometheusExpositionService
extends AbstractHttpService
implements TransientHttpService
Deprecated.
Exposes Prometheus metrics in text
format 0.0.4 or OpenMetrics format.
-
Constructor Summary
ConstructorDescriptionPrometheusExpositionService
(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.Returns a newPrometheusExpositionServiceBuilder
created withCollectorRegistry.defaultRegistry
.builder
(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated.Returns a newPrometheusExpositionServiceBuilder
created with the specifiedCollectorRegistry
.protected HttpResponse
doGet
(ServiceRequestContext ctx, HttpRequest req) Deprecated.Handles aGET
request.protected HttpResponse
doPost
(ServiceRequestContext ctx, HttpRequest req) Deprecated.Handles aPOST
request.static PrometheusExpositionService
of()
Deprecated.Returns a newPrometheusExpositionService
that exposes Prometheus metrics fromCollectorRegistry.defaultRegistry
.static PrometheusExpositionService
of
(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated.Returns a newPrometheusExpositionService
that exposes Prometheus metrics from the specifiedCollectorRegistry
.Deprecated.Methods inherited from class com.linecorp.armeria.server.AbstractHttpService
doConnect, doDelete, doHead, doOptions, doPatch, doPut, doTrace, serve
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorate, exchangeType, options, serve
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Constructor Details
-
PrometheusExpositionService
@Deprecated public PrometheusExpositionService(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated.Creates a new instance.- Parameters:
collectorRegistry
- Prometheus registry
-
-
Method Details
-
of
Deprecated.Returns a newPrometheusExpositionService
that exposes Prometheus metrics fromCollectorRegistry.defaultRegistry
. -
of
public static PrometheusExpositionService of(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated.Returns a newPrometheusExpositionService
that exposes Prometheus metrics from the specifiedCollectorRegistry
. -
builder
Deprecated.Returns a newPrometheusExpositionServiceBuilder
created withCollectorRegistry.defaultRegistry
. -
builder
public static PrometheusExpositionServiceBuilder builder(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated.Returns a newPrometheusExpositionServiceBuilder
created with the specifiedCollectorRegistry
. -
doGet
Deprecated.Description copied from class:AbstractHttpService
Handles aGET
request. This method sends a405 Method Not Allowed
response by default.- Overrides:
doGet
in classAbstractHttpService
- Throws:
Exception
-
doPost
Deprecated.Description copied from class:AbstractHttpService
Handles aPOST
request. This method sends a405 Method Not Allowed
response by default.- Overrides:
doPost
in classAbstractHttpService
- Throws:
Exception
-
transientServiceOptions
Deprecated.Description copied from interface:TransientService
Returns theSet
ofTransientServiceOption
s that are enabled for thisTransientService
. This returnsFlags.transientServiceOptions()
if you didn't specify anyTransientServiceOption
s usingTransientServiceBuilder.transientServiceOptions(TransientServiceOption...)
when you create thisTransientService
.- Specified by:
transientServiceOptions
in interfaceTransientService<HttpRequest,
HttpResponse>
-
PrometheusExpositionService
inarmeria-prometheus1
module instead.