@ThreadSafe public final class MetricKey extends Object implements Comparable<MetricKey>
Modifier and Type | Class and Description |
---|---|
static class |
MetricKey.Builder
Builder to create
MetricKey instances. |
Modifier and Type | Method and Description |
---|---|
static Collection<? extends MetricKey> |
allMetricKeys() |
static Set<MetricKey> |
allShouldReportMetricKeys(MetricsSystem.InstanceType instanceType)
Gets all the metric keys that belong to the given instance type
and should be reported.
|
int |
compareTo(MetricKey o) |
boolean |
equals(Object o) |
static MetricKey |
fromString(String name)
Parses a given name and return its corresponding
MetricKey ,
throwing exception if no such a Metric can be found. |
String |
getDescription() |
String |
getMetricName() |
MetricType |
getMetricType() |
String |
getName() |
int |
hashCode() |
boolean |
isClusterAggregated() |
static boolean |
isValid(String name) |
static boolean |
register(MetricKey key)
Registers the given key to the global key map.
|
String |
toString() |
static void |
unregister(MetricKey key)
Unregisters the given key from the global key map.
|
public static final MetricKey MASTER_ABSENT_CACHE_HITS
public static final MetricKey MASTER_ABSENT_CACHE_MISSES
public static final MetricKey MASTER_ABSENT_CACHE_SIZE
public static final MetricKey MASTER_EDGE_CACHE_EVICTIONS
public static final MetricKey MASTER_EDGE_CACHE_HITS
public static final MetricKey MASTER_EDGE_CACHE_LOAD_TIMES
public static final MetricKey MASTER_EDGE_CACHE_MISSES
public static final MetricKey MASTER_EDGE_CACHE_SIZE
public static final MetricKey MASTER_FILES_PINNED
public static final MetricKey MASTER_FILES_TO_PERSIST
public static final MetricKey MASTER_FILE_SIZE
public static final MetricKey MASTER_INODE_CACHE_EVICTIONS
public static final MetricKey MASTER_INODE_CACHE_HITS
public static final MetricKey MASTER_INODE_CACHE_HIT_RATIO
public static final MetricKey MASTER_INODE_CACHE_LOAD_TIMES
public static final MetricKey MASTER_INODE_CACHE_MISSES
public static final MetricKey MASTER_INODE_CACHE_SIZE
public static final MetricKey MASTER_JOURNAL_SPACE_FREE_BYTES
public static final MetricKey MASTER_JOURNAL_SPACE_FREE_PERCENT
public static final MetricKey MASTER_LOST_FILE_COUNT
public static final MetricKey MASTER_LOST_BLOCK_COUNT
public static final MetricKey MASTER_TOTAL_PATHS
public static final MetricKey MASTER_UNIQUE_BLOCKS
public static final MetricKey MASTER_TOTAL_RPCS
public static final MetricKey MASTER_TOTAL_BLOCK_REPLICA_COUNT
public static final MetricKey MASTER_INODE_HEAP_SIZE
public static final MetricKey MASTER_BLOCK_HEAP_SIZE
public static final MetricKey MASTER_RPC_QUEUE_LENGTH
public static final MetricKey MASTER_LAST_BACKUP_ENTRIES_COUNT
public static final MetricKey MASTER_LAST_BACKUP_TIME_MS
public static final MetricKey MASTER_LAST_BACKUP_RESTORE_COUNT
public static final MetricKey MASTER_LAST_BACKUP_RESTORE_TIME_MS
public static final MetricKey MASTER_DIRECTORIES_CREATED
public static final MetricKey MASTER_FILE_BLOCK_INFOS_GOT
public static final MetricKey MASTER_FILE_INFOS_GOT
public static final MetricKey MASTER_FILES_COMPLETED
public static final MetricKey MASTER_FILES_CREATED
public static final MetricKey MASTER_FILES_FREED
public static final MetricKey MASTER_FILES_PERSISTED
public static final MetricKey MASTER_NEW_BLOCKS_GOT
public static final MetricKey MASTER_PATHS_DELETED
public static final MetricKey MASTER_PATHS_MOUNTED
public static final MetricKey MASTER_PATHS_RENAMED
public static final MetricKey MASTER_PATHS_UNMOUNTED
public static final MetricKey MASTER_COMPLETE_FILE_OPS
public static final MetricKey MASTER_CREATE_DIRECTORIES_OPS
public static final MetricKey MASTER_CREATE_FILES_OPS
public static final MetricKey MASTER_DELETE_PATHS_OPS
public static final MetricKey MASTER_FREE_FILE_OPS
public static final MetricKey MASTER_GET_FILE_BLOCK_INFO_OPS
public static final MetricKey MASTER_GET_FILE_INFO_OPS
public static final MetricKey MASTER_GET_NEW_BLOCK_OPS
public static final MetricKey MASTER_LISTING_CACHE_EVICTIONS
public static final MetricKey MASTER_LISTING_CACHE_HITS
public static final MetricKey MASTER_LISTING_CACHE_LOAD_TIMES
public static final MetricKey MASTER_LISTING_CACHE_MISSES
public static final MetricKey MASTER_LISTING_CACHE_SIZE
public static final MetricKey MASTER_MOUNT_OPS
public static final MetricKey MASTER_RENAME_PATH_OPS
public static final MetricKey MASTER_SET_ACL_OPS
public static final MetricKey MASTER_SET_ATTRIBUTE_OPS
public static final MetricKey MASTER_UNMOUNT_OPS
public static final MetricKey MASTER_INODE_LOCK_POOL_SIZE
public static final MetricKey MASTER_EDGE_LOCK_POOL_SIZE
public static final MetricKey MASTER_EMBEDDED_JOURNAL_SNAPSHOT_GENERATE_TIMER
public static final MetricKey MASTER_EMBEDDED_JOURNAL_SNAPSHOT_DOWNLOAD_TIMER
public static final MetricKey MASTER_EMBEDDED_JOURNAL_SNAPSHOT_INSTALL_TIMER
public static final MetricKey MASTER_EMBEDDED_JOURNAL_SNAPSHOT_REPLAY_TIMER
public static final MetricKey MASTER_EMBEDDED_JOURNAL_SNAPSHOT_LAST_INDEX
public static final MetricKey MASTER_JOURNAL_FLUSH_FAILURE
public static final MetricKey MASTER_JOURNAL_FLUSH_TIMER
public static final MetricKey MASTER_JOURNAL_SEQUENCE_NUMBER
public static final MetricKey MASTER_JOURNAL_LAST_CHECKPOINT_TIME
public static final MetricKey MASTER_JOURNAL_ENTRIES_SINCE_CHECKPOINT
public static final MetricKey MASTER_JOURNAL_GAIN_PRIMACY_TIMER
public static final MetricKey MASTER_UFS_JOURNAL_CATCHUP_TIMER
public static final MetricKey MASTER_UFS_JOURNAL_FAILURE_RECOVER_TIMER
public static final MetricKey MASTER_UFS_JOURNAL_INITIAL_REPLAY_TIME_MS
public static final MetricKey CLUSTER_ACTIVE_RPC_READ_COUNT
public static final MetricKey CLUSTER_ACTIVE_RPC_WRITE_COUNT
public static final MetricKey CLUSTER_BYTES_READ_DIRECT
public static final MetricKey CLUSTER_BYTES_READ_DIRECT_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_READ_REMOTE
public static final MetricKey CLUSTER_BYTES_READ_REMOTE_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_READ_DOMAIN
public static final MetricKey CLUSTER_BYTES_READ_DOMAIN_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_READ_LOCAL
public static final MetricKey CLUSTER_BYTES_READ_LOCAL_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_READ_UFS
public static final MetricKey CLUSTER_BYTES_READ_UFS_ALL
public static final MetricKey CLUSTER_BYTES_READ_UFS_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_WRITTEN_REMOTE
public static final MetricKey CLUSTER_BYTES_WRITTEN_REMOTE_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_WRITTEN_DOMAIN
public static final MetricKey CLUSTER_BYTES_WRITTEN_DOMAIN_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_WRITTEN_LOCAL
public static final MetricKey CLUSTER_BYTES_WRITTEN_LOCAL_THROUGHPUT
public static final MetricKey CLUSTER_BYTES_WRITTEN_UFS
public static final MetricKey CLUSTER_BYTES_WRITTEN_UFS_ALL
public static final MetricKey CLUSTER_BYTES_WRITTEN_UFS_THROUGHPUT
public static final MetricKey CLUSTER_CACHE_HIT_RATE
public static final MetricKey CLUSTER_CAPACITY_TOTAL
public static final MetricKey CLUSTER_CAPACITY_USED
public static final MetricKey CLUSTER_CAPACITY_FREE
public static final MetricKey CLUSTER_ROOT_UFS_CAPACITY_TOTAL
public static final MetricKey CLUSTER_ROOT_UFS_CAPACITY_USED
public static final MetricKey CLUSTER_ROOT_UFS_CAPACITY_FREE
public static final MetricKey CLUSTER_WORKERS
public static final MetricKey CLUSTER_LOST_WORKERS
public static final MetricKey WORKER_ACTIVE_RPC_READ_COUNT
public static final MetricKey WORKER_ACTIVE_RPC_WRITE_COUNT
public static final MetricKey WORKER_ACTIVE_CLIENTS
public static final MetricKey WORKER_BLOCKS_ACCESSED
public static final MetricKey WORKER_BLOCKS_CACHED
public static final MetricKey WORKER_BLOCKS_CANCELLED
public static final MetricKey WORKER_BLOCKS_DELETED
public static final MetricKey WORKER_BLOCKS_EVICTED
public static final MetricKey WORKER_BLOCKS_EVICTION_RATE
public static final MetricKey WORKER_BLOCKS_LOST
public static final MetricKey WORKER_BLOCKS_PROMOTED
public static final MetricKey WORKER_BLOCKS_READ_LOCAL
public static final MetricKey WORKER_BLOCKS_READ_REMOTE
public static final MetricKey WORKER_BLOCKS_READ_UFS
public static final MetricKey WORKER_BYTES_READ_DIRECT
public static final MetricKey WORKER_BYTES_READ_DIRECT_THROUGHPUT
public static final MetricKey WORKER_BYTES_READ_REMOTE
public static final MetricKey WORKER_BYTES_READ_REMOTE_THROUGHPUT
public static final MetricKey WORKER_BYTES_READ_DOMAIN
public static final MetricKey WORKER_BYTES_READ_DOMAIN_THROUGHPUT
public static final MetricKey WORKER_BYTES_READ_UFS
public static final MetricKey WORKER_BYTES_READ_UFS_THROUGHPUT
public static final MetricKey WORKER_BYTES_WRITTEN_DIRECT
public static final MetricKey WORKER_BYTES_WRITTEN_DIRECT_THROUGHPUT
public static final MetricKey WORKER_BYTES_WRITTEN_REMOTE
public static final MetricKey WORKER_BYTES_WRITTEN_REMOTE_THROUGHPUT
public static final MetricKey WORKER_BYTES_WRITTEN_DOMAIN
public static final MetricKey WORKER_BYTES_WRITTEN_DOMAIN_THROUGHPUT
public static final MetricKey WORKER_BYTES_WRITTEN_UFS
public static final MetricKey WORKER_BYTES_WRITTEN_UFS_THROUGHPUT
public static final MetricKey WORKER_CAPACITY_TOTAL
public static final MetricKey WORKER_CAPACITY_USED
public static final MetricKey WORKER_CAPACITY_FREE
public static final MetricKey WORKER_CACHE_FAILED_BLOCKS
public static final MetricKey WORKER_CACHE_REMOTE_BLOCKS
public static final MetricKey WORKER_CACHE_REQUESTS
public static final MetricKey WORKER_CACHE_REQUESTS_ASYNC
public static final MetricKey WORKER_CACHE_REQUESTS_SYNC
public static final MetricKey WORKER_CACHE_SUCCEEDED_BLOCKS
public static final MetricKey WORKER_CACHE_UFS_BLOCKS
public static final MetricKey WORKER_CACHE_BLOCKS_SIZE
public static final MetricKey WORKER_BLOCK_REMOVER_TRY_REMOVE_COUNT
public static final MetricKey WORKER_BLOCK_REMOVER_REMOVED_COUNT
public static final MetricKey WORKER_BLOCK_REMOVER_TRY_REMOVE_BLOCKS_SIZE
public static final MetricKey WORKER_BLOCK_REMOVER_REMOVING_BLOCKS_SIZE
public static final MetricKey CLIENT_BLOCK_READ_CHUNK_REMOTE
public static final MetricKey CLIENT_BYTES_READ_LOCAL
public static final MetricKey CLIENT_BYTES_READ_LOCAL_THROUGHPUT
public static final MetricKey CLIENT_BYTES_WRITTEN_LOCAL
public static final MetricKey CLIENT_BYTES_WRITTEN_LOCAL_THROUGHPUT
public static final MetricKey CLIENT_BYTES_WRITTEN_UFS
public static final MetricKey CLIENT_CACHE_BYTES_READ_CACHE
public static final MetricKey CLIENT_CACHE_BYTES_READ_EXTERNAL
public static final MetricKey CLIENT_CACHE_BYTES_REQUESTED_EXTERNAL
public static final MetricKey CLIENT_CACHE_PAGE_READ_CACHE_TIME_NS
public static final MetricKey CLIENT_CACHE_PAGE_READ_EXTERNAL_TIME_NS
public static final MetricKey CLIENT_CACHE_BYTES_EVICTED
public static final MetricKey CLIENT_CACHE_PAGES
public static final MetricKey CLIENT_CACHE_PAGES_EVICTED
public static final MetricKey CLIENT_CACHE_BYTES_WRITTEN_CACHE
public static final MetricKey CLIENT_CACHE_HIT_RATE
public static final MetricKey CLIENT_CACHE_SPACE_AVAILABLE
public static final MetricKey CLIENT_CACHE_SPACE_USED
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_BYTES
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_BYTES_HIT
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_BYTES_READ
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_FALSE_POSITIVE_RATIO
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_PAGES
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_PAGES_HIT
public static final MetricKey CLIENT_CACHE_SHADOW_CACHE_PAGES_READ
public static final MetricKey CLIENT_CACHE_SPACE_USED_COUNT
public static final MetricKey CLIENT_CACHE_CLEAN_ERRORS
public static final MetricKey CLIENT_CACHE_CREATE_ERRORS
public static final MetricKey CLIENT_CACHE_DELETE_ERRORS
public static final MetricKey CLIENT_CACHE_DELETE_NON_EXISTING_PAGE_ERRORS
public static final MetricKey CLIENT_CACHE_DELETE_NOT_READY_ERRORS
public static final MetricKey CLIENT_CACHE_DELETE_FROM_STORE_ERRORS
public static final MetricKey CLIENT_CACHE_GET_ERRORS
public static final MetricKey CLIENT_CACHE_GET_NOT_READY_ERRORS
public static final MetricKey CLIENT_CACHE_GET_STORE_READ_ERRORS
public static final MetricKey CLIENT_CACHE_CLEANUP_GET_ERRORS
public static final MetricKey CLIENT_CACHE_CLEANUP_PUT_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_ASYNC_REJECTION_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_EVICTION_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_INSUFFICIENT_SPACE_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_BENIGN_RACING_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_NOT_READY_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_STORE_DELETE_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_STORE_WRITE_ERRORS
public static final MetricKey CLIENT_CACHE_PUT_STORE_WRITE_NO_SPACE_ERRORS
public static final MetricKey CLIENT_CACHE_STORE_DELETE_TIMEOUT
public static final MetricKey CLIENT_CACHE_STORE_GET_TIMEOUT
public static final MetricKey CLIENT_CACHE_STORE_PUT_TIMEOUT
public static final MetricKey CLIENT_CACHE_STORE_THREADS_REJECTED
public static final MetricKey CLIENT_CACHE_STATE
public static final MetricKey CLIENT_META_DATA_CACHE_SIZE
public static final MetricKey FUSE_BYTES_TO_READ
public static final MetricKey FUSE_BYTES_READ
public static final MetricKey FUSE_WRITING_FILE_COUNT
public static final MetricKey FUSE_READING_FILE_COUNT
public static final MetricKey FUSE_CACHED_PATH_COUNT
public static final MetricKey TOTAL_EXTRA_TIME
public static final MetricKey INFO_TIME_EXCEEDED
public static final MetricKey WARN_TIME_EXCEEDED
public static boolean isValid(String name)
name
- name of a metricpublic static MetricKey fromString(String name)
MetricKey
,
throwing exception if no such a Metric can be found.name
- name of the Metric keypublic static Collection<? extends MetricKey> allMetricKeys()
public static Set<MetricKey> allShouldReportMetricKeys(MetricsSystem.InstanceType instanceType)
instanceType
- the instance type that should be reportedpublic String getName()
public String getMetricName()
public String getDescription()
public MetricType getMetricType()
public boolean isClusterAggregated()
public static boolean register(MetricKey key)
key
- the Metric keypublic static void unregister(MetricKey key)
key
- the Metric to unregisterpublic int compareTo(MetricKey o)
compareTo
in interface Comparable<MetricKey>
Copyright © 2023. All Rights Reserved.