public final class MoreNamingConventions extends Object
NamingConventions.| Modifier and Type | Method and Description |
|---|---|
static void |
configure()
Configures all the
MeterRegistrys added to the Metrics.globalRegistry to use the
NamingConventions provided by this class. |
static void |
configure(MeterRegistry registry)
Configures the specified
MeterRegistry to use the NamingConventions provided by this
class. |
static NamingConvention |
dropwizard()
Returns the
NamingConvention of Dropwizard Metrics. |
static NamingConvention |
identity()
Returns the
NamingConvention that uses the user-provided names and tags as they are. |
static NamingConvention |
prometheus()
Returns the
NamingConvention of Prometheus. |
public static NamingConvention identity()
NamingConvention that uses the user-provided names and tags as they are.public static NamingConvention dropwizard()
NamingConvention of Dropwizard Metrics.public static NamingConvention prometheus()
NamingConvention of Prometheus.public static void configure()
MeterRegistrys added to the Metrics.globalRegistry to use the
NamingConventions provided by this class. DropwizardMeterRegistry and
PrometheusMeterRegistry will be configured to use dropwizard() and
prometheus() respectively. This method is a shortcut of:
configure(Metrics.globalRegistry);
public static void configure(MeterRegistry registry)
MeterRegistry to use the NamingConventions provided by this
class. DropwizardMeterRegistry and PrometheusMeterRegistry will be configured to use
dropwizard() and prometheus() respectively. A CompositeMeterRegistry will be
configured recursively.Copyright © 2020 LeanCloud. All rights reserved.