public final class PrometheusSupport extends Object implements Service
Default and simplest use on Routing creates /metrics endpoint
for default CollectorRegistry.
Routing.builder()
.register(PrometheusSupport.create())
It is possible to use
| Modifier and Type | Class and Description |
|---|---|
static class |
PrometheusSupport.Builder
A builder of
PrometheusSupport. |
| Modifier and Type | Method and Description |
|---|---|
static PrometheusSupport.Builder |
builder()
Creates new
Builder instance. |
static PrometheusSupport |
create()
Creates new instance using default Prometheus
CollectorRegistry. |
static PrometheusSupport |
create(CollectorRegistry collectorRegistry)
Creates new instance using specified Prometheus
CollectorRegistry. |
void |
update(Routing.Rules rules)
Updates
Routing.Rules with handlers representing this service. |
public void update(Routing.Rules rules)
ServiceRouting.Rules with handlers representing this service.public static PrometheusSupport create(CollectorRegistry collectorRegistry)
CollectorRegistry.public static PrometheusSupport create()
CollectorRegistry.CollectorRegistry,
create(CollectorRegistry),
builder()public static PrometheusSupport.Builder builder()
Builder instance.create(),
create(CollectorRegistry)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.