Class PrometheusMeterRegistries
java.lang.Object
com.linecorp.armeria.common.prometheus.PrometheusMeterRegistries
Provides the convenient factory methods for
PrometheusMeterRegistry
.-
Method Summary
Modifier and TypeMethodDescriptionstatic PrometheusMeterRegistry
Returns the defaultPrometheusMeterRegistry
that usesPrometheusRegistry.defaultRegistry
.static PrometheusMeterRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with a newPrometheusRegistry
.static PrometheusMeterRegistry
newRegistry
(io.prometheus.metrics.model.registry.PrometheusRegistry registry) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedPrometheusRegistry
.static PrometheusMeterRegistry
newRegistry
(io.prometheus.metrics.model.registry.PrometheusRegistry registry, Clock clock) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedPrometheusRegistry
andClock
.
-
Method Details
-
defaultRegistry
Returns the defaultPrometheusMeterRegistry
that usesPrometheusRegistry.defaultRegistry
. -
newRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with a newPrometheusRegistry
. -
newRegistry
public static PrometheusMeterRegistry newRegistry(io.prometheus.metrics.model.registry.PrometheusRegistry registry) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedPrometheusRegistry
. -
newRegistry
public static PrometheusMeterRegistry newRegistry(io.prometheus.metrics.model.registry.PrometheusRegistry registry, Clock clock) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedPrometheusRegistry
andClock
.
-