Class PrometheusMeterRegistries
java.lang.Object
com.linecorp.armeria.common.metric.PrometheusMeterRegistries
Provides the convenient factory methods for
PrometheusMeterRegistry
with more sensible defaults for
NamingConvention
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PrometheusMeterRegistry>
TconfigureRegistry
(T meterRegistry) Configures thePrometheusMeterRegistry
with Armeria's defaults.static PrometheusMeterRegistry
Returns the defaultPrometheusMeterRegistry
that usesCollectorRegistry.defaultRegistry
.static PrometheusMeterRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with a newCollectorRegistry
.static PrometheusMeterRegistry
newRegistry
(CollectorRegistry registry) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedCollectorRegistry
.static PrometheusMeterRegistry
newRegistry
(CollectorRegistry registry, Clock clock) Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedCollectorRegistry
andClock
.
-
Method Details
-
defaultRegistry
Returns the defaultPrometheusMeterRegistry
that usesCollectorRegistry.defaultRegistry
. -
newRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with a newCollectorRegistry
. -
newRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedCollectorRegistry
. -
newRegistry
Returns a newly-createdPrometheusMeterRegistry
instance with the specifiedCollectorRegistry
andClock
. -
configureRegistry
Configures thePrometheusMeterRegistry
with Armeria's defaults.- Returns:
- the specified
PrometheusMeterRegistry
-