| Package | Description |
|---|---|
| com.networknt.metrics | |
| io.dropwizard.metrics | |
| io.dropwizard.metrics.influxdb |
| Modifier and Type | Method and Description |
|---|---|
static void |
JVMMetricsUtil.trackAllJVMMetrics(MetricRegistry registry,
Map<String,String> commonTags) |
| Constructor and Description |
|---|
JVMMetricsInfluxDbReporter(MetricRegistry registry,
InfluxDbSender influxDb,
String name,
MetricFilter filter,
TimeUnit rateUnit,
TimeUnit durationUnit,
Map<String,String> tags) |
| Modifier and Type | Method and Description |
|---|---|
static MetricRegistry |
SharedMetricRegistries.add(String name,
MetricRegistry registry) |
static MetricRegistry |
SharedMetricRegistries.getDefault() |
static MetricRegistry |
SharedMetricRegistries.getOrCreate(String name) |
static MetricRegistry |
SharedMetricRegistries.setDefault(String name) |
static MetricRegistry |
SharedMetricRegistries.setDefault(String name,
MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
static MetricRegistry |
SharedMetricRegistries.add(String name,
MetricRegistry registry) |
static InstrumentedThreadFactory |
InstrumentedExecutors.defaultThreadFactory(MetricRegistry registry)
Returns an instrumented default thread factory used to create new threads.
|
static InstrumentedThreadFactory |
InstrumentedExecutors.defaultThreadFactory(MetricRegistry registry,
String name)
Returns an instrumented default thread factory used to create new threads.
|
static Slf4jReporter.Builder |
Slf4jReporter.forRegistry(MetricRegistry registry)
Returns a new
Slf4jReporter.Builder for Slf4jReporter. |
static JmxReporter.Builder |
JmxReporter.forRegistry(MetricRegistry registry)
Returns a new
JmxReporter.Builder for JmxReporter. |
static ConsoleReporter.Builder |
ConsoleReporter.forRegistry(MetricRegistry registry)
Returns a new
ConsoleReporter.Builder for ConsoleReporter. |
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(MetricRegistry registry)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(MetricRegistry registry,
String name)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(ThreadFactory threadFactory,
MetricRegistry registry)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available, and uses the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newCachedThreadPool(ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that creates new threads as needed, but
will reuse previously constructed threads when they are
available, and uses the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
MetricRegistry registry)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
ThreadFactory threadFactory,
MetricRegistry registry)
Creates a thread pool that reuses a fixed number of threads
operating off a shared unbounded queue, using the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newFixedThreadPool(int nThreads,
ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that reuses a fixed number of threads
operating off a shared unbounded queue, using the provided
ThreadFactory to create new threads when needed.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newScheduledThreadPool(int corePoolSize,
MetricRegistry registry)
Creates an instrumented thread pool that can schedule commands to run after a
given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newScheduledThreadPool(int corePoolSize,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that can schedule commands to run after a
given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newScheduledThreadPool(int corePoolSize,
ThreadFactory threadFactory,
MetricRegistry registry)
Creates an instrumented thread pool that can schedule commands to run after a
given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newScheduledThreadPool(int corePoolSize,
ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an instrumented thread pool that can schedule commands to run after a
given delay, or to execute periodically.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(MetricRegistry registry)
Creates an Executor that uses a single worker thread operating
off an unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(MetricRegistry registry,
String name)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(ThreadFactory threadFactory,
MetricRegistry registry)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue, and uses the provided ThreadFactory to
create a new thread when needed.
|
static InstrumentedExecutorService |
InstrumentedExecutors.newSingleThreadExecutor(ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates an InstrumentedExecutor that uses a single worker thread operating
off an unbounded queue, and uses the provided ThreadFactory to
create a new thread when needed.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newSingleThreadScheduledExecutor(MetricRegistry registry)
Creates a single-threaded instrumented executor that can schedule commands
to run after a given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newSingleThreadScheduledExecutor(MetricRegistry registry,
String name)
Creates a single-threaded instrumented executor that can schedule commands
to run after a given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newSingleThreadScheduledExecutor(ThreadFactory threadFactory,
MetricRegistry registry)
Creates a single-threaded instrumented executor that can schedule commands
to run after a given delay, or to execute periodically.
|
static InstrumentedScheduledExecutorService |
InstrumentedExecutors.newSingleThreadScheduledExecutor(ThreadFactory threadFactory,
MetricRegistry registry,
String name)
Creates a single-threaded instrumented executor that can schedule commands
to run after a given delay, or to execute periodically.
|
static InstrumentedThreadFactory |
InstrumentedExecutors.privilegedThreadFactory(MetricRegistry registry)
Returns an instrumented thread factory used to create new threads that
have the same permissions as the current thread.
|
static InstrumentedThreadFactory |
InstrumentedExecutors.privilegedThreadFactory(MetricRegistry registry,
String name)
Returns an instrumented thread factory used to create new threads that
have the same permissions as the current thread.
|
static MetricRegistry |
SharedMetricRegistries.setDefault(String name,
MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
static InfluxDbReporter.Builder |
InfluxDbReporter.forRegistry(MetricRegistry registry) |
Copyright © 2021. All rights reserved.