public class Meters
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Meters.Builder |
| Constructor and Description |
|---|
Meters() |
| Modifier and Type | Method and Description |
|---|---|
static Meters.Builder |
build(java.lang.String name) |
static com.google.common.cache.Cache |
monitor(MeterRegistry registry,
com.google.common.cache.Cache cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on Guava caches.
|
static com.google.common.cache.Cache |
monitor(MeterRegistry registry,
com.google.common.cache.Cache cache,
java.lang.String name,
Tag... tags)
Record metrics on Guava caches.
|
static javax.sql.DataSource |
monitor(MeterRegistry registry,
javax.sql.DataSource dataSource,
java.util.Collection<org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider> metadataProviders,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on active connections and connection pool utilization.
|
static javax.sql.DataSource |
monitor(MeterRegistry registry,
javax.sql.DataSource dataSource,
java.util.Collection<org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider> metadataProviders,
java.lang.String name,
Tag... tags)
Record metrics on active connections and connection pool utilization.
|
static java.util.concurrent.ExecutorService |
monitor(MeterRegistry registry,
java.util.concurrent.ExecutorService executor,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of an
ExecutorService. |
static java.util.concurrent.ExecutorService |
monitor(MeterRegistry registry,
java.util.concurrent.ExecutorService executor,
java.lang.String name,
Tag... tags)
Record metrics on the use of an
ExecutorService. |
static java.util.concurrent.Executor |
monitor(MeterRegistry registry,
java.util.concurrent.Executor executor,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of an
Executor. |
static java.util.concurrent.Executor |
monitor(MeterRegistry registry,
java.util.concurrent.Executor executor,
java.lang.String name,
Tag... tags)
Record metrics on the use of an
Executor. |
static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
monitor(MeterRegistry registry,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of a
ThreadPoolTaskExecutor. |
static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
monitor(MeterRegistry registry,
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor,
java.lang.String name,
Tag... tags)
Record metrics on the use of a
ThreadPoolTaskExecutor. |
static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
monitor(MeterRegistry registry,
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of a
ThreadPoolTaskExecutor. |
static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
monitor(MeterRegistry registry,
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler,
java.lang.String name,
Tag... tags)
Record metrics on the use of a
ThreadPoolTaskExecutor. |
public static Meters.Builder build(java.lang.String name)
public static com.google.common.cache.Cache monitor(MeterRegistry registry, com.google.common.cache.Cache cache, java.lang.String name, Tag... tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.CacheStatspublic static com.google.common.cache.Cache monitor(MeterRegistry registry, com.google.common.cache.Cache cache, java.lang.String name, java.lang.Iterable<Tag> tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.CacheStatspublic static javax.sql.DataSource monitor(MeterRegistry registry, javax.sql.DataSource dataSource, java.util.Collection<org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider> metadataProviders, java.lang.String name, java.lang.Iterable<Tag> tags)
registry - The registry to bind metrics to.dataSource - The data source to instrument.metadataProviders - A list of providers from which the instrumentation can look up information about pool usage.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static javax.sql.DataSource monitor(MeterRegistry registry, javax.sql.DataSource dataSource, java.util.Collection<org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider> metadataProviders, java.lang.String name, Tag... tags)
registry - The registry to bind metrics to.dataSource - The data source to instrument.metadataProviders - A list of providers from which the instrumentation can look up information about pool usage.name - The name prefix of the metricstags - Tags to apply to all recorded metrics.public static java.util.concurrent.Executor monitor(MeterRegistry registry, java.util.concurrent.Executor executor, java.lang.String name, java.lang.Iterable<Tag> tags)
Executor.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.Executor monitor(MeterRegistry registry, java.util.concurrent.Executor executor, java.lang.String name, Tag... tags)
Executor.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.ExecutorService monitor(MeterRegistry registry, java.util.concurrent.ExecutorService executor, java.lang.String name, java.lang.Iterable<Tag> tags)
ExecutorService.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.ExecutorService monitor(MeterRegistry registry, java.util.concurrent.ExecutorService executor, java.lang.String name, Tag... tags)
ExecutorService.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor monitor(MeterRegistry registry, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, java.lang.String name, java.lang.Iterable<Tag> tags)
ThreadPoolTaskExecutor.registry - The registry to bind metrics to.executor - The task executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor monitor(MeterRegistry registry, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor, java.lang.String name, Tag... tags)
ThreadPoolTaskExecutor.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler monitor(MeterRegistry registry, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler, java.lang.String name, java.lang.Iterable<Tag> tags)
ThreadPoolTaskExecutor.registry - The registry to bind metrics to.scheduler - The task scheduler to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler monitor(MeterRegistry registry, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler, java.lang.String name, Tag... tags)
ThreadPoolTaskExecutor.registry - The registry to bind metrics to.scheduler - The scheduler to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.