- 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
Routingcreates/metricsendpoint fordefault CollectorRegistry.Routing.builder() .register(PrometheusSupport.create())It is possible to use
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrometheusSupport.BuilderA builder ofPrometheusSupport.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrometheusSupport.Builderbuilder()Creates newBuilderinstance.static PrometheusSupportcreate()Creates new instance using default PrometheusCollectorRegistry.static PrometheusSupportcreate(CollectorRegistry collectorRegistry)Creates new instance using specified PrometheusCollectorRegistry.voidupdate(Routing.Rules rules)UpdatesRouting.Ruleswithhandlersrepresenting this service.
-
-
-
Method Detail
-
update
public void update(Routing.Rules rules)
Description copied from interface:ServiceUpdatesRouting.Ruleswithhandlersrepresenting 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 newBuilderinstance.- Returns:
- the new instance
- See Also:
create(),create(CollectorRegistry)
-
-