public class GridMetricManager extends GridManagerAdapter<MetricExporterSpi> implements ReadOnlyMetricManager
ReadOnlyMetricManager for each configured MetricExporterSpi.MetricExporterSpi,
MetricRegistry| Modifier and Type | Class and Description |
|---|---|
class |
GridMetricManager.MemoryUsageMetrics
Memory usage metrics.
|
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_COUNT_DESC |
static String |
CLIENT_CONNECTOR_METRICS
Client metrics prefix.
|
static String |
CLUSTER_METRICS
Cluster metrics prefix.
|
static String |
COMPLETED_TASK_DESC |
static String |
CORE_SIZE_DESC |
static String |
CPU_LOAD
CPU load metric name.
|
static String |
CPU_LOAD_DESCRIPTION
CPU load metric description.
|
static String |
DAEMON_THREAD_CNT
Daemon thread count metric name.
|
static String |
GC_CPU_LOAD
GC CPU load metric name.
|
static String |
GC_CPU_LOAD_DESCRIPTION
GC CPU load metric description.
|
static String |
HISTOGRAM_CFG_PREFIX
Prefix for
HistogramMetric configuration property name. |
static String |
HITRATE_CFG_PREFIX
Prefix for
HitRateMetric configuration property name. |
static String |
IGNITE_METRICS
Ignite node metrics prefix.
|
static String |
IS_SHUTDOWN_DESC |
static String |
IS_TERMINATED_DESC |
static String |
IS_TERMINATING_DESC |
static String |
KEEP_ALIVE_TIME_DESC |
static String |
LARGEST_SIZE_DESC |
static String |
MAX_SIZE_DESC |
static String |
PEAK_THREAD_CNT
Peak thread count metric name.
|
static String |
PME_DURATION
PME duration metric name.
|
static String |
PME_DURATION_HISTOGRAM
Histogram of PME durations metric name.
|
static String |
PME_METRICS
Partition map exchange metrics prefix.
|
static String |
PME_OPS_BLOCKED_DURATION
PME cache operations blocked duration metric name.
|
static String |
PME_OPS_BLOCKED_DURATION_HISTOGRAM
Histogram of blocking PME durations metric name.
|
static String |
POOL_SIZE_DESC |
static String |
QUEUE_SIZE_DESC |
static String |
REBALANCED
Whether cluster is in fully rebalanced state metric name.
|
static String |
REJ_HND_DESC |
static String |
SQL_SPI
Class name for a SQL view metrics exporter.
|
static String |
SYS_METRICS
System metrics prefix.
|
static String |
TASK_COUNT_DESC |
static String |
THRD_FACTORY_DESC |
static String |
THREAD_CNT
Thread count metric name.
|
static String |
THREAD_POOLS
Group for a thread pools.
|
static String |
TOTAL_STARTED_THREAD_CNT
Total started thread count metric name.
|
static String |
TX_METRICS
Transaction metrics prefix.
|
static String |
UP_TIME
Up time metric name.
|
ctx, log| Constructor and Description |
|---|
GridMetricManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetricRegistryCreationListener(Consumer<ReadOnlyMetricRegistry> lsnr)
Adds listener of metrics registry creation events.
|
void |
addMetricRegistryRemoveListener(Consumer<ReadOnlyMetricRegistry> lsnr)
Adds listener of metrics registry remove events.
|
void |
configureHistogram(String name,
long[] bounds)
Stores
HistogramMetric configuration in metastorage. |
void |
configureHitRate(String name,
long rateTimeInterval)
Change
HitRateMetric configuration if it exists. |
MemoryUsage |
heapMemoryUsage()
Returns the current memory usage of the heap.
|
@NotNull Iterator<ReadOnlyMetricRegistry> |
iterator() |
MemoryUsage |
nonHeapMemoryUsage() |
protected void |
onKernalStart0() |
void |
registerThreadPools(ExecutorService utilityCachePool,
ExecutorService execSvc,
ExecutorService svcExecSvc,
ExecutorService sysExecSvc,
StripedExecutor stripedExecSvc,
ExecutorService p2pExecSvc,
ExecutorService mgmtExecSvc,
StripedExecutor dataStreamExecSvc,
ExecutorService restExecSvc,
ExecutorService affExecSvc,
@Nullable ExecutorService idxExecSvc,
IgniteStripedThreadPoolExecutor callbackExecSvc,
ExecutorService qryExecSvc,
ExecutorService schemaExecSvc,
ExecutorService rebalanceExecSvc,
IgniteStripedThreadPoolExecutor rebalanceStripedExecSvc,
@Nullable Map<String,? extends ExecutorService> customExecSvcs)
Registers all metrics for thread pools.
|
MetricRegistry |
registry(String name)
Gets or creates metric registry.
|
void |
remove(String regName)
Removes metric registry.
|
void |
remove(String regName,
boolean removeCfg)
Removes metric registry.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, enabled, getSpi, getSpi, getSpis, inject, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onKernalStop0, onReconnected, printMemoryStats, startInfo, startSpi, stopInfo, stopSpi, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String SQL_SPI
public static final String ACTIVE_COUNT_DESC
public static final String COMPLETED_TASK_DESC
public static final String CORE_SIZE_DESC
public static final String LARGEST_SIZE_DESC
public static final String MAX_SIZE_DESC
public static final String POOL_SIZE_DESC
public static final String TASK_COUNT_DESC
public static final String QUEUE_SIZE_DESC
public static final String KEEP_ALIVE_TIME_DESC
public static final String IS_SHUTDOWN_DESC
public static final String IS_TERMINATED_DESC
public static final String IS_TERMINATING_DESC
public static final String REJ_HND_DESC
public static final String THRD_FACTORY_DESC
public static final String THREAD_POOLS
public static final String SYS_METRICS
public static final String IGNITE_METRICS
public static final String PME_METRICS
public static final String CLUSTER_METRICS
public static final String CLIENT_CONNECTOR_METRICS
public static final String TX_METRICS
public static final String GC_CPU_LOAD
public static final String GC_CPU_LOAD_DESCRIPTION
public static final String CPU_LOAD
public static final String CPU_LOAD_DESCRIPTION
public static final String UP_TIME
public static final String THREAD_CNT
public static final String PEAK_THREAD_CNT
public static final String TOTAL_STARTED_THREAD_CNT
public static final String DAEMON_THREAD_CNT
public static final String PME_DURATION
public static final String PME_OPS_BLOCKED_DURATION
public static final String PME_DURATION_HISTOGRAM
public static final String PME_OPS_BLOCKED_DURATION_HISTOGRAM
public static final String REBALANCED
public static final String HITRATE_CFG_PREFIX
HitRateMetric configuration property name.public static final String HISTOGRAM_CFG_PREFIX
HistogramMetric configuration property name.public GridMetricManager(GridKernalContext ctx)
ctx - Kernal context.protected void onKernalStart0()
onKernalStart0 in class GridManagerAdapter<MetricExporterSpi>public void start()
throws IgniteCheckedException
start in interface GridComponentIgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentcancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public MetricRegistry registry(String name)
name - Group name.@NotNull public @NotNull Iterator<ReadOnlyMetricRegistry> iterator()
iterator in interface Iterable<ReadOnlyMetricRegistry>public void addMetricRegistryCreationListener(Consumer<ReadOnlyMetricRegistry> lsnr)
addMetricRegistryCreationListener in interface ReadOnlyMetricManagerlsnr - Listener.public void addMetricRegistryRemoveListener(Consumer<ReadOnlyMetricRegistry> lsnr)
addMetricRegistryRemoveListener in interface ReadOnlyMetricManagerlsnr - Listener.public void remove(String regName)
regName - Metric registry name.public void remove(String regName, boolean removeCfg)
regName - Metric registry name.removeCfg - True if remove metric configurations.public void configureHitRate(String name, long rateTimeInterval) throws IgniteCheckedException
HitRateMetric configuration if it exists.name - Metric name.rateTimeInterval - New rate time interval.IgniteCheckedException - If write of configuration failed.HitRateMetric.reset(long, int)public void configureHistogram(String name, long[] bounds) throws IgniteCheckedException
HistogramMetric configuration in metastorage.name - Metric name.bounds - New bounds.IgniteCheckedException - If write of configuration failed.public void registerThreadPools(ExecutorService utilityCachePool, ExecutorService execSvc, ExecutorService svcExecSvc, ExecutorService sysExecSvc, StripedExecutor stripedExecSvc, ExecutorService p2pExecSvc, ExecutorService mgmtExecSvc, StripedExecutor dataStreamExecSvc, ExecutorService restExecSvc, ExecutorService affExecSvc, @Nullable @Nullable ExecutorService idxExecSvc, IgniteStripedThreadPoolExecutor callbackExecSvc, ExecutorService qryExecSvc, ExecutorService schemaExecSvc, ExecutorService rebalanceExecSvc, IgniteStripedThreadPoolExecutor rebalanceStripedExecSvc, @Nullable @Nullable Map<String,? extends ExecutorService> customExecSvcs)
utilityCachePool - Utility cache pool.execSvc - Executor service.svcExecSvc - Services' executor service.sysExecSvc - System executor service.stripedExecSvc - Striped executor.p2pExecSvc - P2P executor service.mgmtExecSvc - Management executor service.dataStreamExecSvc - Data stream executor service.restExecSvc - Reset executor service.affExecSvc - Affinity executor service.idxExecSvc - Indexing executor service.callbackExecSvc - Callback executor service.qryExecSvc - Query executor service.schemaExecSvc - Schema executor service.rebalanceExecSvc - Rebalance executor service.rebalanceStripedExecSvc - Rebalance striped executor service.customExecSvcs - Custom named executors.public MemoryUsage nonHeapMemoryUsage()
public MemoryUsage heapMemoryUsage()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021