java.lang.Object
io.helidon.metrics.prometheus.PrometheusSupport
- All Implemented Interfaces:
Service
Support for Prometheus client endpoint.
Default and simplest use on Routing
creates /metrics
endpoint
for default CollectorRegistry
.
Routing.builder()
.register(PrometheusSupport.create())
It is possible to use
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
update
Description copied from interface:Service
UpdatesRouting.Rules
withhandlers
representing this service. -
create
Creates new instance using specified PrometheusCollectorRegistry
. -
create
Creates new instance using default PrometheusCollectorRegistry
.- Returns:
- new instance
- See Also:
-
builder
Creates newBuilder
instance.- Returns:
- the new instance
- See Also:
-