Package io.helidon.metrics.prometheus
Class PrometheusSupport
- java.lang.Object
-
- io.helidon.metrics.prometheus.PrometheusSupport
-
- All Implemented Interfaces:
Service
public final class PrometheusSupport extends Object implements Service
Support for Prometheus client endpoint.Default and simplest use on
Routing
creates/metrics
endpoint fordefault CollectorRegistry
.Routing.builder() .register(PrometheusSupport.create())
It is possible to use
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrometheusSupport.Builder
A builder ofPrometheusSupport
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrometheusSupport.Builder
builder()
Creates newBuilder
instance.static PrometheusSupport
create()
Creates new instance using default PrometheusCollectorRegistry
.static PrometheusSupport
create(CollectorRegistry collectorRegistry)
Creates new instance using specified PrometheusCollectorRegistry
.void
update(Routing.Rules rules)
UpdatesRouting.Rules
withhandlers
representing this service.
-
-
-
Method Detail
-
update
public void update(Routing.Rules rules)
Description copied from interface:Service
UpdatesRouting.Rules
withhandlers
representing this service.
-
create
public static PrometheusSupport create(CollectorRegistry collectorRegistry)
Creates new instance using specified PrometheusCollectorRegistry
.
-
create
public static PrometheusSupport create()
Creates new instance using default PrometheusCollectorRegistry
.- Returns:
- new instance
- See Also:
CollectorRegistry
,create(CollectorRegistry)
,builder()
-
builder
public static PrometheusSupport.Builder builder()
Creates newBuilder
instance.- Returns:
- the new instance
- See Also:
create()
,create(CollectorRegistry)
-
-