| Modifier and Type | Method and Description |
|---|---|
MeterRegistry |
MetricsService.createMeterRegistry()
Create a new
MeterRegistry used by filter-service to generate metrics. |
| Modifier and Type | Field and Description |
|---|---|
static ClientFactoryOption<MeterRegistry> |
ClientFactoryOption.METER_REGISTRY
The
MeterRegistry which collects various stats. |
| Modifier and Type | Method and Description |
|---|---|
MeterRegistry |
DecoratingClientFactory.meterRegistry() |
MeterRegistry |
ClientFactoryOptions.meterRegistry()
Returns the
MeterRegistry which collects various stats. |
MeterRegistry |
ClientFactory.meterRegistry()
Returns the
MeterRegistry that collects various stats. |
| Modifier and Type | Method and Description |
|---|---|
ClientRequestContextBuilder |
ClientRequestContextBuilder.meterRegistry(MeterRegistry meterRegistry) |
ClientFactoryBuilder |
ClientFactoryBuilder.meterRegistry(MeterRegistry meterRegistry)
Sets the
MeterRegistry which collects various stats. |
void |
DecoratingClientFactory.setMeterRegistry(MeterRegistry meterRegistry) |
void |
ClientFactory.setMeterRegistry(MeterRegistry meterRegistry)
Sets the
MeterRegistry that collects various stats. |
| Constructor and Description |
|---|
DefaultClientRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
String fragment,
ClientOptions options,
HttpRequest req,
RpcRequest rpcReq,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
UserClient(ClientBuilderParams params,
Client<I,O> delegate,
MeterRegistry meterRegistry)
Creates a new instance.
|
| Constructor and Description |
|---|
MetricCollectingCircuitBreakerListener(MeterRegistry registry)
Creates a new instance with the default name .
|
MetricCollectingCircuitBreakerListener(MeterRegistry registry,
String name)
Creates a new instance with the specified
Meter name. |
| Modifier and Type | Method and Description |
|---|---|
MeterRegistry |
RequestContextWrapper.meterRegistry() |
MeterRegistry |
RequestContext.meterRegistry()
Returns the
MeterRegistry that collects various stats. |
MeterRegistry |
NonWrappingRequestContext.meterRegistry() |
protected MeterRegistry |
AbstractRequestContextBuilder.meterRegistry()
Returns the
MeterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
AbstractRequestContextBuilder |
AbstractRequestContextBuilder.meterRegistry(MeterRegistry meterRegistry)
Sets the
MeterRegistry. |
| Constructor and Description |
|---|
NonWrappingRequestContext(MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
HttpMethod method,
String path,
String query,
HttpRequest req,
RpcRequest rpcReq,
RequestContext rootAttributeMap)
Creates a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NoopMeterRegistry
A
MeterRegistry which does not record any values. |
| Modifier and Type | Method and Description |
|---|---|
MeterIdPrefix |
MeterIdPrefixFunction.activeRequestPrefix(MeterRegistry registry,
RequestOnlyLog log)
Creates a
MeterIdPrefix for the active request counter gauges from the specified
RequestOnlyLog. |
MeterIdPrefix |
MeterIdPrefixFunction.completeRequestPrefix(MeterRegistry registry,
RequestLog log)
Creates a
MeterIdPrefix from the specified complete RequestLog. |
static void |
MoreNamingConventions.configure(MeterRegistry registry)
Deprecated.
Use Micrometer's default
NamingConvention. |
static Map<String,Double> |
MoreMeters.measureAll(MeterRegistry registry)
Returns a newly-created immutable
Map which contains all values of Meters in the
specified MeterRegistry. |
static DistributionSummary |
MoreMeters.newDistributionSummary(MeterRegistry registry,
String name,
Iterable<Tag> tags)
Returns a newly-registered
DistributionSummary configured by
MoreMeters.distributionStatisticConfig(). |
static Timer |
MoreMeters.newTimer(MeterRegistry registry,
String name,
Iterable<Tag> tags)
Returns a newly-registered
Timer configured by MoreMeters.distributionStatisticConfig(). |
static DistributionSummary |
MoreMeters.summaryWithDefaultQuantiles(MeterRegistry registry,
String name,
Iterable<Tag> tags)
Deprecated.
|
static Timer |
MoreMeters.timerWithDefaultQuantiles(MeterRegistry registry,
String name,
Iterable<Tag> tags)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
default MeterIdPrefixFunction |
MeterIdPrefixFunction.andThen(BiFunction<MeterRegistry,MeterIdPrefix,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction that applies transformation on the MeterIdPrefix
returned by this function. |
static MeterIdPrefixFunction |
MeterIdPrefixFunction.of(BiFunction<? super MeterRegistry,? super RequestOnlyLog,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction which generates a MeterIdPrefix from the given
MeterRegistry and RequestOnlyLog. |
| Modifier and Type | Method and Description |
|---|---|
static void |
PathAndQuery.registerMetrics(MeterRegistry registry,
MeterIdPrefix idPrefix) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
MicrometerUtil.register(MeterRegistry registry,
MeterIdPrefix idPrefix,
Class<T> type,
BiFunction<MeterRegistry,MeterIdPrefix,T> factory)
Associates a newly-created object with the specified
MeterIdPrefix or returns an existing one if
exists already. |
static <T> void |
MicrometerUtil.registerLater(MeterRegistry registry,
MeterIdPrefix idPrefix,
Class<T> type,
BiFunction<MeterRegistry,MeterIdPrefix,T> factory)
Similar to
MicrometerUtil.register(MeterRegistry, MeterIdPrefix, Class, BiFunction), but used when
a registration has to be nested, because otherwise the registration may enter an infinite loop,
as described here. |
static void |
CaffeineMetricSupport.setup(MeterRegistry registry,
MeterIdPrefix idPrefix,
<any> cache) |
static void |
CaffeineMetricSupport.setup(MeterRegistry registry,
MeterIdPrefix idPrefix,
<any> cache,
Ticker ticker) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
MicrometerUtil.register(MeterRegistry registry,
MeterIdPrefix idPrefix,
Class<T> type,
BiFunction<MeterRegistry,MeterIdPrefix,T> factory)
Associates a newly-created object with the specified
MeterIdPrefix or returns an existing one if
exists already. |
static <T> void |
MicrometerUtil.registerLater(MeterRegistry registry,
MeterIdPrefix idPrefix,
Class<T> type,
BiFunction<MeterRegistry,MeterIdPrefix,T> factory)
Similar to
MicrometerUtil.register(MeterRegistry, MeterIdPrefix, Class, BiFunction), but used when
a registration has to be nested, because otherwise the registration may enter an infinite loop,
as described here. |
| Modifier and Type | Method and Description |
|---|---|
MeterRegistry |
ServerConfig.meterRegistry()
Returns the
MeterRegistry that collects various stats. |
MeterRegistry |
Server.meterRegistry()
Returns the
MeterRegistry that collects various stats. |
| Modifier and Type | Method and Description |
|---|---|
ServiceRequestContextBuilder |
ServiceRequestContextBuilder.meterRegistry(MeterRegistry meterRegistry) |
ServerBuilder |
ServerBuilder.meterRegistry(MeterRegistry meterRegistry)
Sets the
MeterRegistry that collects various stats. |
default boolean |
Router.registerMetrics(MeterRegistry registry,
MeterIdPrefix idPrefix)
Registers the stats of this
Router to the specified MeterRegistry. |
| Constructor and Description |
|---|
DefaultServiceRequestContext(ServiceConfig cfg,
io.netty.channel.Channel ch,
MeterRegistry meterRegistry,
SessionProtocol sessionProtocol,
RequestId id,
RoutingContext routingContext,
RoutingResult routingResult,
HttpRequest req,
SSLSession sslSession,
ProxiedAddresses proxiedAddresses,
InetAddress clientAddress,
long requestStartTimeNanos,
long requestStartTimeMicros)
Creates a new instance.
|
| Constructor and Description |
|---|
CountedAspect(MeterRegistry meterRegistry)
Construct a new aspect with the given
meterRegistry along with a default
tags provider. |
CountedAspect(MeterRegistry meterRegistry,
Function<ProceedingJoinPoint,Iterable<Tag>> tagsBasedOnJoinPoint)
Constructs a new aspect with the given
meterRegistry and tags provider function. |
TimedAspect(MeterRegistry registry) |
TimedAspect(MeterRegistry registry,
Function<ProceedingJoinPoint,Iterable<Tag>> tagsBasedOnJoinPoint) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Metrics.addRegistry(MeterRegistry registry)
Add a registry to the global composite registry.
|
static MockClock |
MockClock.clock(MeterRegistry registry) |
Timer |
Timer.Builder.register(MeterRegistry registry)
Add the timer to a single registry, or return an existing timer in that registry.
|
TimeGauge |
TimeGauge.Builder.register(MeterRegistry registry)
Add the time gauge to a single registry, or return an existing time gauge in that registry.
|
MultiGauge |
MultiGauge.Builder.register(MeterRegistry registry) |
Meter |
Meter.Builder.register(MeterRegistry registry)
Add the meter to a single registry, or return an existing meter in that registry.
|
LongTaskTimer |
LongTaskTimer.Builder.register(MeterRegistry registry)
Add the long task timer to a single registry, or return an existing long task timer in that registry.
|
Gauge |
Gauge.Builder.register(MeterRegistry registry)
Add the gauge to a single registry, or return an existing gauge in that registry.
|
FunctionTimer |
FunctionTimer.Builder.register(MeterRegistry registry)
Add the function timer to a single registry, or return an existing function timer in that registry.
|
FunctionCounter |
FunctionCounter.Builder.register(MeterRegistry registry)
Add the function counter to a single registry, or return an existing function counter in that registry.
|
DistributionSummary |
DistributionSummary.Builder.register(MeterRegistry registry)
Add the distribution summary to a single registry, or return an existing distribution summary in that registry.
|
Counter |
Counter.Builder.register(MeterRegistry registry)
Add the counter to a single registry, or return an existing counter in that registry.
|
static void |
Metrics.removeRegistry(MeterRegistry registry)
Remove a registry from the global composite registry.
|
static Timer.Sample |
Timer.start(MeterRegistry registry)
Start a timing sample.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MeterBinder.bindTo(MeterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JCacheMetrics.bindImplementationSpecificMetrics(MeterRegistry registry) |
protected void |
HazelcastCacheMetrics.bindImplementationSpecificMetrics(MeterRegistry registry) |
protected void |
GuavaCacheMetrics.bindImplementationSpecificMetrics(MeterRegistry registry) |
protected void |
EhCache2Metrics.bindImplementationSpecificMetrics(MeterRegistry registry) |
protected void |
CaffeineCacheMetrics.bindImplementationSpecificMetrics(MeterRegistry registry) |
protected abstract void |
CacheMeterBinder.bindImplementationSpecificMetrics(MeterRegistry registry)
Bind detailed metrics that are particular to the cache implementation, e.g. load duration for
Caffeine caches, heap and disk size for EhCache caches.
|
void |
CacheMeterBinder.bindTo(MeterRegistry registry) |
static <K,V,C extends <any>> |
JCacheMetrics.monitor(MeterRegistry registry,
C cache,
Iterable<Tag> tags)
Record metrics on a JCache cache.
|
static <K,V,C extends <any>> |
HazelcastCacheMetrics.monitor(MeterRegistry registry,
C cache,
Iterable<Tag> tags)
Record metrics on a Hazelcast cache.
|
static <K,V,C extends <any>> |
JCacheMetrics.monitor(MeterRegistry registry,
C cache,
String... tags)
Record metrics on a JCache cache.
|
static <K,V,C extends <any>> |
HazelcastCacheMetrics.monitor(MeterRegistry registry,
C cache,
String... tags)
Record metrics on a Hazelcast cache.
|
static <C extends <any>> |
GuavaCacheMetrics.monitor(MeterRegistry registry,
C cache,
String cacheName,
Iterable<Tag> tags)
Record metrics on a Guava cache.
|
static <C extends <any>> |
CaffeineCacheMetrics.monitor(MeterRegistry registry,
C cache,
String cacheName,
Iterable<Tag> tags)
Record metrics on a Caffeine cache.
|
static <C extends <any>> |
GuavaCacheMetrics.monitor(MeterRegistry registry,
C cache,
String cacheName,
String... tags)
Record metrics on a Guava cache.
|
static <C extends <any>> |
CaffeineCacheMetrics.monitor(MeterRegistry registry,
C cache,
String cacheName,
String... tags)
Record metrics on a Caffeine cache.
|
static Ehcache |
EhCache2Metrics.monitor(MeterRegistry registry,
Ehcache cache,
Iterable<Tag> tags)
Record metrics on an EhCache cache.
|
static Ehcache |
EhCache2Metrics.monitor(MeterRegistry registry,
Ehcache cache,
String... tags)
Record metrics on an EhCache cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSQLDatabaseMetrics.bindTo(MeterRegistry registry) |
void |
DatabaseTableMetrics.bindTo(MeterRegistry registry) |
static void |
DatabaseTableMetrics.monitor(MeterRegistry registry,
DataSource dataSource,
String dataSourceName,
String tableName,
Iterable<Tag> tags)
Record the row count for an individual database table.
|
static void |
DatabaseTableMetrics.monitor(MeterRegistry registry,
String tableName,
String dataSourceName,
DataSource dataSource,
String... tags)
Record the row count for an individual database table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PoolingHttpClientConnectionManagerMetricsBinder.bindTo(MeterRegistry registry) |
static MicrometerHttpRequestExecutor.Builder |
MicrometerHttpRequestExecutor.builder(MeterRegistry registry)
Use this method to create an instance of
MicrometerHttpRequestExecutor. |
| Modifier and Type | Method and Description |
|---|---|
void |
HystrixMetricsBinder.bindTo(MeterRegistry registry) |
| Constructor and Description |
|---|
MicrometerMetricsPublisher(MeterRegistry registry,
HystrixMetricsPublisher metricsPublisher) |
MicrometerMetricsPublisherCommand(MeterRegistry meterRegistry,
HystrixCommandKey commandKey,
HystrixCommandGroupKey commandGroupKey,
HystrixCommandMetrics metrics,
HystrixCircuitBreaker circuitBreaker,
HystrixMetricsPublisherCommand metricsPublisherForCommand) |
MicrometerMetricsPublisherThreadPool(MeterRegistry meterRegistry,
HystrixThreadPoolKey threadPoolKey,
HystrixThreadPoolMetrics metrics,
HystrixThreadPoolProperties properties,
HystrixMetricsPublisherThreadPool metricsPublisherForThreadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
JettyStatisticsMetrics.bindTo(MeterRegistry registry) |
void |
JettyServerThreadPoolMetrics.bindTo(MeterRegistry registry) |
static void |
JettyStatisticsMetrics.monitor(MeterRegistry meterRegistry,
StatisticsHandler statisticsHandler,
Iterable<Tag> tags) |
static void |
JettyStatisticsMetrics.monitor(MeterRegistry meterRegistry,
StatisticsHandler statisticsHandler,
String... tags) |
| Constructor and Description |
|---|
InstrumentedQueuedThreadPool(MeterRegistry registry,
Iterable<Tag> tags) |
| Modifier and Type | Method and Description |
|---|---|
void |
HibernateMetrics.bindTo(MeterRegistry registry) |
static void |
HibernateMetrics.monitor(MeterRegistry registry,
EntityManagerFactory entityManagerFactory,
String entityManagerFactoryName,
Iterable<Tag> tags)
Deprecated.
since 1.1.2 in favor of
HibernateMetrics.monitor(MeterRegistry, SessionFactory, String, Iterable) |
static void |
HibernateMetrics.monitor(MeterRegistry registry,
EntityManagerFactory entityManagerFactory,
String entityManagerFactoryName,
String... tags)
Deprecated.
since 1.1.2 in favor of
HibernateMetrics.monitor(MeterRegistry, SessionFactory, String, String...) |
static void |
HibernateMetrics.monitor(MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
Iterable<Tag> tags)
Create
HibernateMetrics and bind to the specified meter registry. |
static void |
HibernateMetrics.monitor(MeterRegistry registry,
SessionFactory sessionFactory,
String sessionFactoryName,
String... tags)
Create
HibernateMetrics and bind to the specified meter registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
JvmThreadMetrics.bindTo(MeterRegistry registry) |
void |
JvmMemoryMetrics.bindTo(MeterRegistry registry) |
void |
JvmGcMetrics.bindTo(MeterRegistry registry) |
void |
ExecutorServiceMetrics.bindTo(MeterRegistry registry) |
void |
DiskSpaceMetrics.bindTo(MeterRegistry registry) |
void |
ClassLoaderMetrics.bindTo(MeterRegistry registry) |
static ExecutorService |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
ExecutorService executor,
String executorServiceName,
Iterable<Tag> tags)
Record metrics on the use of an
ExecutorService. |
static ExecutorService |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
ExecutorService executor,
String executorServiceName,
Tag... tags)
Record metrics on the use of an
ExecutorService. |
static Executor |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
Executor executor,
String executorName,
Iterable<Tag> tags)
Record metrics on the use of an
Executor. |
static Executor |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
Executor executor,
String executorName,
Tag... tags)
Record metrics on the use of an
Executor. |
static ScheduledExecutorService |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
ScheduledExecutorService executor,
String executorServiceName,
Iterable<Tag> tags)
Record metrics on the use of a
ScheduledExecutorService. |
static ScheduledExecutorService |
ExecutorServiceMetrics.monitor(MeterRegistry registry,
ScheduledExecutorService executor,
String executorServiceName,
Tag... tags)
Record metrics on the use of a
ScheduledExecutorService. |
| Modifier and Type | Method and Description |
|---|---|
void |
KafkaConsumerMetrics.bindTo(MeterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
LogbackMetrics.bindTo(MeterRegistry registry) |
void |
Log4j2Metrics.bindTo(MeterRegistry registry) |
| Constructor and Description |
|---|
MongoMetricsCommandListener(MeterRegistry registry) |
MongoMetricsConnectionPoolListener(MeterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
static OkHttpMetricsEventListener.Builder |
OkHttpMetricsEventListener.builder(MeterRegistry registry,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
UptimeMetrics.bindTo(MeterRegistry registry) |
void |
ProcessorMetrics.bindTo(MeterRegistry registry) |
void |
FileDescriptorMetrics.bindTo(MeterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
TomcatMetrics.bindTo(MeterRegistry registry) |
static void |
TomcatMetrics.monitor(MeterRegistry registry,
Manager manager,
Iterable<Tag> tags) |
static void |
TomcatMetrics.monitor(MeterRegistry registry,
Manager manager,
String... tags) |
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeMeterRegistry
The clock of the composite effectively overrides the clocks of the registries it manages without actually
replacing the state of the clock in these registries with the exception of long task timers, whose clock cannot
be overridden.
|
| Modifier and Type | Method and Description |
|---|---|
Set<MeterRegistry> |
CompositeMeterRegistry.getRegistries() |
| Modifier and Type | Method and Description |
|---|---|
CompositeMeterRegistry |
CompositeMeterRegistry.add(MeterRegistry registry) |
CompositeMeterRegistry |
CompositeMeterRegistry.remove(MeterRegistry registry) |
| Constructor and Description |
|---|
CompositeMeterRegistry(Clock clock,
Iterable<MeterRegistry> registries) |
| Modifier and Type | Method and Description |
|---|---|
static HistogramGauges |
HistogramGauges.register(HistogramSupport meter,
MeterRegistry registry,
Function<ValueAtPercentile,String> percentileName,
Function<ValueAtPercentile,Iterable<Tag>> percentileTags,
Function<ValueAtPercentile,Double> percentileValue,
Function<CountAtBucket,String> bucketName,
Function<CountAtBucket,Iterable<Tag>> bucketTags) |
static HistogramGauges |
HistogramGauges.registerWithCommonFormat(DistributionSummary summary,
MeterRegistry registry) |
static HistogramGauges |
HistogramGauges.registerWithCommonFormat(Timer timer,
MeterRegistry registry)
Register a set of gauges for percentiles and histogram buckets that follow a common format when
the monitoring system doesn't have an opinion about the structure of this data.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DropwizardMeterRegistry
Dropwizard
MeterRegistry. |
| Constructor and Description |
|---|
TimedExecutor(MeterRegistry registry,
Executor delegate,
String executorName,
Iterable<Tag> tags) |
TimedExecutorService(MeterRegistry registry,
ExecutorService delegate,
String executorServiceName,
Iterable<Tag> tags) |
TimedScheduledExecutorService(MeterRegistry registry,
ScheduledExecutorService delegate,
String executorServiceName,
Iterable<Tag> tags) |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingMeterRegistry
Logging
MeterRegistry. |
| Modifier and Type | Class and Description |
|---|---|
class |
PushMeterRegistry |
| Modifier and Type | Method and Description |
|---|---|
static Search |
Search.in(MeterRegistry registry)
Initiate a new search for meters inside a registry.
|
static RequiredSearch |
RequiredSearch.in(MeterRegistry registry)
Initiate a new search for meters inside a registry.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleMeterRegistry
A minimal meter registry implementation primarily used for tests.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StepMeterRegistry
Registry that step-normalizes counts and sums to a rate/second over the publishing interval.
|
| Modifier and Type | Method and Description |
|---|---|
static List<List<Meter>> |
MeterPartition.partition(MeterRegistry registry,
int partitionSize) |
| Constructor and Description |
|---|
MeterPartition(MeterRegistry registry,
int partitionSize) |
Copyright © 2020 LeanCloud. All rights reserved.