001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.hadoop.hbase.regionserver; 019 020import org.apache.hadoop.hbase.metrics.BaseSource; 021import org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource; 022import org.apache.yetus.audience.InterfaceAudience; 023 024/** 025 * Interface for classes that expose metrics about the regionserver. 026 */ 027@InterfaceAudience.Private 028public interface MetricsRegionServerSource extends BaseSource, JvmPauseMonitorSource { 029 030 /** 031 * The name of the metrics 032 */ 033 String METRICS_NAME = "Server"; 034 035 /** 036 * The name of the metrics context that metrics will be under. 037 */ 038 String METRICS_CONTEXT = "regionserver"; 039 040 /** 041 * Description 042 */ 043 String METRICS_DESCRIPTION = "Metrics about HBase RegionServer"; 044 045 /** 046 * The name of the metrics context that metrics will be under in jmx 047 */ 048 String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME; 049 050 /** 051 * Update the Put time histogram 052 * @param t time it took 053 */ 054 void updatePut(long t); 055 056 /** 057 * Update the PutBatch time histogram if a batch contains a Put op 058 */ 059 void updatePutBatch(long t); 060 061 /** 062 * Update the Delete time histogram 063 * @param t time it took 064 */ 065 void updateDelete(long t); 066 067 /** 068 * Update the Delete time histogram if a batch contains a delete op 069 * @param t time it took 070 */ 071 void updateDeleteBatch(long t); 072 073 /** 074 * Update checkAndDelete histogram 075 * @param t time it took 076 */ 077 void updateCheckAndDelete(long t); 078 079 /** 080 * Update checkAndPut histogram 081 * @param t time it took 082 */ 083 void updateCheckAndPut(long t); 084 085 /** 086 * Update checkAndMutate histogram 087 * @param time time it took 088 * @param blockBytesScanned how many block bytes were scanned for the check portion of the request 089 */ 090 void updateCheckAndMutate(long time, long blockBytesScanned); 091 092 /** 093 * Update the Get time histogram . 094 * @param time time it took 095 * @param blockBytesScanned how many block bytes were scanned for the request 096 */ 097 void updateGet(long time, long blockBytesScanned); 098 099 /** 100 * Update the Increment time histogram. 101 * @param time time it took 102 * @param blockBytesScanned how many block bytes were scanned fetching the current value to 103 * increment 104 */ 105 void updateIncrement(long time, long blockBytesScanned); 106 107 /** 108 * Update the Append time histogram. 109 * @param time time it took 110 * @param blockBytesScanned how many block bytes were scanned fetching the current value to append 111 */ 112 void updateAppend(long time, long blockBytesScanned); 113 114 /** 115 * Update the Replay time histogram. 116 * @param t time it took 117 */ 118 void updateReplay(long t); 119 120 /** 121 * Update the scan metrics. 122 * @param time response time of scan 123 * @param responseCellSize size of the scan resposne 124 * @param blockBytesScanned size of block bytes scanned to retrieve the response 125 */ 126 void updateScan(long time, long responseCellSize, long blockBytesScanned); 127 128 /** 129 * Increment the number of slow Puts that have happened. 130 */ 131 void incrSlowPut(); 132 133 /** 134 * Increment the number of slow Deletes that have happened. 135 */ 136 void incrSlowDelete(); 137 138 /** 139 * Increment the number of slow Gets that have happened. 140 */ 141 void incrSlowGet(); 142 143 /** 144 * Increment the number of slow Increments that have happened. 145 */ 146 void incrSlowIncrement(); 147 148 /** 149 * Increment the number of slow Appends that have happened. 150 */ 151 void incrSlowAppend(); 152 153 /** 154 * Update the split transaction time histogram 155 * @param t time it took, in milliseconds 156 */ 157 void updateSplitTime(long t); 158 159 /** 160 * Increment number of a requested splits 161 */ 162 void incrSplitRequest(); 163 164 /** 165 * Increment number of successful splits 166 */ 167 void incrSplitSuccess(); 168 169 /** 170 * Update the flush time histogram 171 * @param t time it took, in milliseconds 172 */ 173 void updateFlushTime(long t); 174 175 /** 176 * Update the flush memstore size histogram 177 * @param bytes the number of bytes in the memstore 178 */ 179 void updateFlushMemStoreSize(long bytes); 180 181 /** 182 * Update the flush output file size histogram 183 * @param bytes the number of bytes in the output file 184 */ 185 void updateFlushOutputSize(long bytes); 186 187 /** 188 * Update the compaction time histogram, both major and minor 189 * @param isMajor whether compaction is a major compaction 190 * @param t time it took, in milliseconds 191 */ 192 void updateCompactionTime(boolean isMajor, long t); 193 194 /** 195 * Update the compaction input number of files histogram 196 * @param isMajor whether compaction is a major compaction 197 * @param c number of files 198 */ 199 void updateCompactionInputFileCount(boolean isMajor, long c); 200 201 /** 202 * Update the compaction total input file size histogram 203 * @param isMajor whether compaction is a major compaction 204 * @param bytes the number of bytes of the compaction input file 205 */ 206 void updateCompactionInputSize(boolean isMajor, long bytes); 207 208 /** 209 * Update the compaction output number of files histogram 210 * @param isMajor whether compaction is a major compaction 211 * @param c number of files 212 */ 213 void updateCompactionOutputFileCount(boolean isMajor, long c); 214 215 /** 216 * Update the compaction total output file size 217 * @param isMajor whether compaction is a major compaction 218 * @param bytes the number of bytes of the compaction input file 219 */ 220 void updateCompactionOutputSize(boolean isMajor, long bytes); 221 222 void incrScannerLeaseExpired(); 223 224 // Strings used for exporting to metrics system. 225 String REGION_COUNT = "regionCount"; 226 String REGION_COUNT_DESC = "Number of regions"; 227 String STORE_COUNT = "storeCount"; 228 String STORE_COUNT_DESC = "Number of Stores"; 229 String WALFILE_COUNT = "hlogFileCount"; 230 String WALFILE_COUNT_DESC = "Number of WAL Files"; 231 String WALFILE_SIZE = "hlogFileSize"; 232 String WALFILE_SIZE_DESC = "Size of all WAL Files"; 233 String STOREFILE_COUNT = "storeFileCount"; 234 String STOREFILE_COUNT_DESC = "Number of Store Files"; 235 String STORE_REF_COUNT = "storeRefCount"; 236 String STORE_REF_COUNT_DESC = "Store reference count"; 237 String MAX_COMPACTED_STORE_FILE_REF_COUNT = "maxCompactedStoreFileRefCount"; 238 String MEMSTORE_SIZE = "memStoreSize"; 239 String MEMSTORE_SIZE_DESC = "Size of the memstore"; 240 String MEMSTORE_HEAP_SIZE = "memStoreHeapSize"; 241 String MEMSTORE_HEAP_SIZE_DESC = "On-heap Size of the memstore"; 242 String MEMSTORE_OFFHEAP_SIZE = "memStoreOffHeapSize"; 243 String MEMSTORE_OFFHEAP_SIZE_DESC = "Off-heap Size of the memstore"; 244 String STOREFILE_SIZE = "storeFileSize"; 245 String MAX_STORE_FILE_AGE = "maxStoreFileAge"; 246 String MIN_STORE_FILE_AGE = "minStoreFileAge"; 247 String AVG_STORE_FILE_AGE = "avgStoreFileAge"; 248 String NUM_REFERENCE_FILES = "numReferenceFiles"; 249 String MAX_STORE_FILE_AGE_DESC = "Max age of store files hosted on this RegionServer"; 250 String MIN_STORE_FILE_AGE_DESC = "Min age of store files hosted on this RegionServer"; 251 String AVG_STORE_FILE_AGE_DESC = "Average age of store files hosted on this RegionServer"; 252 String NUM_REFERENCE_FILES_DESC = "Number of reference file on this RegionServer"; 253 String STOREFILE_SIZE_DESC = "Size of storefiles being served."; 254 String TOTAL_REQUEST_COUNT = "totalRequestCount"; 255 String TOTAL_REQUEST_COUNT_DESC = 256 "Total number of requests this RegionServer has answered; increments the count once for " 257 + "EVERY access whether an admin operation, a Scan, a Put or Put of 1M rows, or a Get " 258 + "of a non-existent row"; 259 String TOTAL_ROW_ACTION_REQUEST_COUNT = "totalRowActionRequestCount"; 260 String TOTAL_ROW_ACTION_REQUEST_COUNT_DESC = 261 "Total number of region requests this RegionServer has answered; counts by row-level " 262 + "action at the RPC Server (Sums 'readRequestsCount' and 'writeRequestsCount'); counts" 263 + "once per access whether a Put of 1M rows or a Get that returns 1M Results"; 264 String READ_REQUEST_COUNT = "readRequestCount"; 265 String FILTERED_READ_REQUEST_COUNT = "filteredReadRequestCount"; 266 String FILTERED_READ_REQUEST_COUNT_DESC = 267 "Number of read requests this region server has answered."; 268 String READ_REQUEST_COUNT_DESC = 269 "Number of read requests with non-empty Results that this RegionServer has answered."; 270 String READ_REQUEST_RATE_PER_SECOND = "readRequestRatePerSecond"; 271 String READ_REQUEST_RATE_DESC = 272 "Rate of answering the read requests by this region server per second."; 273 String WRITE_REQUEST_COUNT = "writeRequestCount"; 274 String WRITE_REQUEST_COUNT_DESC = "Number of mutation requests this RegionServer has answered."; 275 String WRITE_REQUEST_RATE_PER_SECOND = "writeRequestRatePerSecond"; 276 String WRITE_REQUEST_RATE_DESC = 277 "Rate of answering the mutation requests by this region server per second."; 278 String CHECK_MUTATE_FAILED_COUNT = "checkMutateFailedCount"; 279 String CHECK_MUTATE_FAILED_COUNT_DESC = 280 "Number of Check and Mutate calls that failed the checks."; 281 String CHECK_MUTATE_PASSED_COUNT = "checkMutatePassedCount"; 282 String CHECK_MUTATE_PASSED_COUNT_DESC = 283 "Number of Check and Mutate calls that passed the checks."; 284 String STOREFILE_INDEX_SIZE = "storeFileIndexSize"; 285 String STOREFILE_INDEX_SIZE_DESC = "Size of indexes in storefiles on disk."; 286 String STATIC_INDEX_SIZE = "staticIndexSize"; 287 String STATIC_INDEX_SIZE_DESC = "Uncompressed size of the static indexes."; 288 String STATIC_BLOOM_SIZE = "staticBloomSize"; 289 String STATIC_BLOOM_SIZE_DESC = "Uncompressed size of the static bloom filters."; 290 291 String BLOOM_FILTER_REQUESTS_COUNT = "bloomFilterRequestsCount"; 292 String BLOOM_FILTER_REQUESTS_COUNT_DESC = "Count of requests to bloom filters."; 293 294 String BLOOM_FILTER_NEGATIVE_RESULTS_COUNT = "bloomFilterNegativeResultsCount"; 295 String BLOOM_FILTER_NEGATIVE_RESULTS_COUNT_DESC = 296 "Count of bloom filter requests which returned a negative result."; 297 298 String BLOOM_FILTER_ELIGIBLE_REQUESTS_COUNT = "bloomFilterEligibleRequestsCount"; 299 String BLOOM_FILTER_ELIGIBLE_REQUESTS_COUNT_DESC = 300 "Count of requests which could have used bloom filters but didn't because they weren't configured or loaded"; 301 302 String NUMBER_OF_MUTATIONS_WITHOUT_WAL = "mutationsWithoutWALCount"; 303 String NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC = 304 "Number of mutations that have been sent by clients with the write ahead logging turned off."; 305 String DATA_SIZE_WITHOUT_WAL = "mutationsWithoutWALSize"; 306 String DATA_SIZE_WITHOUT_WAL_DESC = 307 "Size of data that has been sent by clients with the write ahead logging turned off."; 308 String PERCENT_FILES_LOCAL = "percentFilesLocal"; 309 String PERCENT_FILES_LOCAL_DESC = 310 "The percent of HFiles that are stored on the local hdfs data node."; 311 String PERCENT_FILES_LOCAL_SECONDARY_REGIONS = "percentFilesLocalSecondaryRegions"; 312 String PERCENT_FILES_LOCAL_SECONDARY_REGIONS_DESC = 313 "The percent of HFiles used by secondary regions that are stored on the local hdfs data node."; 314 String SPLIT_QUEUE_LENGTH = "splitQueueLength"; 315 String SPLIT_QUEUE_LENGTH_DESC = "Length of the queue for splits."; 316 String COMPACTION_QUEUE_LENGTH = "compactionQueueLength"; 317 String LARGE_COMPACTION_QUEUE_LENGTH = "largeCompactionQueueLength"; 318 String SMALL_COMPACTION_QUEUE_LENGTH = "smallCompactionQueueLength"; 319 String COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions."; 320 String LARGE_COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions with input size " 321 + "larger than throttle threshold (2.5GB by default)"; 322 String SMALL_COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions with input size " 323 + "smaller than throttle threshold (2.5GB by default)"; 324 String FLUSH_QUEUE_LENGTH = "flushQueueLength"; 325 String FLUSH_QUEUE_LENGTH_DESC = "Length of the queue for region flushes"; 326 String BLOCK_CACHE_FREE_SIZE = "blockCacheFreeSize"; 327 String BLOCK_CACHE_FREE_DESC = "Size of the block cache that is not occupied."; 328 String BLOCK_CACHE_COUNT = "blockCacheCount"; 329 String BLOCK_CACHE_COUNT_DESC = "Number of block in the block cache."; 330 String BLOCK_CACHE_DATA_BLOCK_COUNT = "blockCacheDataBlockCount"; 331 String BLOCK_CACHE_DATA_BLOCK_COUNT_DESC = "Number of DATA block in the block cache."; 332 String BLOCK_CACHE_SIZE = "blockCacheSize"; 333 String BLOCK_CACHE_SIZE_DESC = "Size of the block cache."; 334 String BLOCK_CACHE_HIT_COUNT = "blockCacheHitCount"; 335 String BLOCK_CACHE_HIT_COUNT_DESC = "Count of the hit on the block cache."; 336 String BLOCK_CACHE_PRIMARY_HIT_COUNT = "blockCacheHitCountPrimary"; 337 String BLOCK_CACHE_PRIMARY_HIT_COUNT_DESC = "Count of hit on primary replica in the block cache."; 338 String BLOCK_CACHE_HIT_CACHING_COUNT = "blockCacheHitCachingCount"; 339 String BLOCK_CACHE_HIT_CACHING_COUNT_DESC = 340 "Count of the hit on the block cache, for cacheable requests."; 341 String BLOCK_CACHE_MISS_COUNT = "blockCacheMissCount"; 342 String BLOCK_COUNT_MISS_COUNT_DESC = 343 "Number of requests for a block that missed the block cache."; 344 String BLOCK_CACHE_PRIMARY_MISS_COUNT = "blockCacheMissCountPrimary"; 345 String BLOCK_COUNT_PRIMARY_MISS_COUNT_DESC = 346 "Number of requests for a block of primary replica that missed the block cache."; 347 String BLOCK_CACHE_MISS_CACHING_COUNT = "blockCacheMissCachingCount"; 348 String BLOCK_COUNT_MISS_CACHING_COUNT_DESC = 349 "Number of requests for a block that missed the block cache, for cacheable requests."; 350 String BLOCK_CACHE_EVICTION_COUNT = "blockCacheEvictionCount"; 351 String BLOCK_CACHE_EVICTION_COUNT_DESC = 352 "Count of the number of blocks evicted from the block cache." 353 + "(Not including blocks evicted because of HFile removal)"; 354 String BLOCK_CACHE_PRIMARY_EVICTION_COUNT = "blockCacheEvictionCountPrimary"; 355 String BLOCK_CACHE_PRIMARY_EVICTION_COUNT_DESC = 356 "Count of the number of blocks evicted from primary replica in the block cache."; 357 String BLOCK_CACHE_HIT_PERCENT = "blockCacheCountHitPercent"; 358 String BLOCK_CACHE_HIT_PERCENT_DESC = "Percent of block cache requests that are hits"; 359 String BLOCK_CACHE_EXPRESS_HIT_PERCENT = "blockCacheExpressHitPercent"; 360 String BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC = 361 "The percent of the time that requests with the cache turned on hit the cache."; 362 String BLOCK_CACHE_FAILED_INSERTION_COUNT = "blockCacheFailedInsertionCount"; 363 String BLOCK_CACHE_FAILED_INSERTION_COUNT_DESC = 364 "Number of times that a block cache " + "insertion failed. Usually due to size restrictions."; 365 String BLOCK_CACHE_DATA_MISS_COUNT = "blockCacheDataMissCount"; 366 String BLOCK_CACHE_ENCODED_DATA_MISS_COUNT = "blockCacheEncodedDataMissCount"; 367 String BLOCK_CACHE_LEAF_INDEX_MISS_COUNT = "blockCacheLeafIndexMissCount"; 368 String BLOCK_CACHE_BLOOM_CHUNK_MISS_COUNT = "blockCacheBloomChunkMissCount"; 369 String BLOCK_CACHE_META_MISS_COUNT = "blockCacheMetaMissCount"; 370 String BLOCK_CACHE_ROOT_INDEX_MISS_COUNT = "blockCacheRootIndexMissCount"; 371 String BLOCK_CACHE_INTERMEDIATE_INDEX_MISS_COUNT = "blockCacheIntermediateIndexMissCount"; 372 String BLOCK_CACHE_FILE_INFO_MISS_COUNT = "blockCacheFileInfoMissCount"; 373 String BLOCK_CACHE_GENERAL_BLOOM_META_MISS_COUNT = "blockCacheGeneralBloomMetaMissCount"; 374 String BLOCK_CACHE_DELETE_FAMILY_BLOOM_MISS_COUNT = "blockCacheDeleteFamilyBloomMissCount"; 375 String BLOCK_CACHE_TRAILER_MISS_COUNT = "blockCacheTrailerMissCount"; 376 String BLOCK_CACHE_DATA_HIT_COUNT = "blockCacheDataHitCount"; 377 String BLOCK_CACHE_ENCODED_DATA_HIT_COUNT = "blockCacheEncodedDataHitCount"; 378 String BLOCK_CACHE_LEAF_INDEX_HIT_COUNT = "blockCacheLeafIndexHitCount"; 379 String BLOCK_CACHE_BLOOM_CHUNK_HIT_COUNT = "blockCacheBloomChunkHitCount"; 380 String BLOCK_CACHE_META_HIT_COUNT = "blockCacheMetaHitCount"; 381 String BLOCK_CACHE_ROOT_INDEX_HIT_COUNT = "blockCacheRootIndexHitCount"; 382 String BLOCK_CACHE_INTERMEDIATE_INDEX_HIT_COUNT = "blockCacheIntermediateIndexHitCount"; 383 String BLOCK_CACHE_FILE_INFO_HIT_COUNT = "blockCacheFileInfoHitCount"; 384 String BLOCK_CACHE_GENERAL_BLOOM_META_HIT_COUNT = "blockCacheGeneralBloomMetaHitCount"; 385 String BLOCK_CACHE_DELETE_FAMILY_BLOOM_HIT_COUNT = "blockCacheDeleteFamilyBloomHitCount"; 386 String BLOCK_CACHE_TRAILER_HIT_COUNT = "blockCacheTrailerHitCount"; 387 String L1_CACHE_FREE_SIZE = "l1CacheFreeSize"; 388 String L1_CACHE_FREE_SIZE_DESC = "Amount of free bytes in the L1 cache"; 389 String L1_CACHE_SIZE = "l1CacheSize"; 390 String L1_CACHE_SIZE_DESC = "Size of the L1 cache in bytes"; 391 String L1_CACHE_COUNT = "l1CacheCount"; 392 String L1_CACHE_COUNT_DESC = "Count of blocks in the L1 cache"; 393 String L1_CACHE_EVICTION_COUNT = "l1CacheEvictionCount"; 394 String L1_CACHE_EVICTION_COUNT_DESC = "Count of blocks evicted from the L1 cache"; 395 396 String L1_CACHE_HIT_COUNT = "l1CacheHitCount"; 397 String L1_CACHE_HIT_COUNT_DESC = "L1 cache hit count."; 398 String L1_CACHE_MISS_COUNT = "l1CacheMissCount"; 399 String L1_CACHE_MISS_COUNT_DESC = "L1 cache miss count."; 400 String L1_CACHE_HIT_RATIO = "l1CacheHitRatio"; 401 String L1_CACHE_HIT_RATIO_DESC = "L1 cache hit ratio."; 402 String L1_CACHE_MISS_RATIO = "l1CacheMissRatio"; 403 String L1_CACHE_MISS_RATIO_DESC = "L1 cache miss ratio."; 404 String L2_CACHE_FREE_SIZE = "l2CacheFreeSize"; 405 String L2_CACHE_FREE_SIZE_DESC = "Amount of free bytes in the L2 cache"; 406 String L2_CACHE_SIZE = "l2CacheSize"; 407 String L2_CACHE_SIZE_DESC = "Size of the L2 cache in bytes"; 408 String L2_CACHE_COUNT = "l2CacheCount"; 409 String L2_CACHE_COUNT_DESC = "Count of blocks in the L2 cache"; 410 String L2_CACHE_EVICTION_COUNT = "l2CacheEvictionCount"; 411 String L2_CACHE_EVICTION_COUNT_DESC = "Count of blocks evicted from the L2 cache"; 412 String L2_CACHE_HIT_COUNT = "l2CacheHitCount"; 413 String L2_CACHE_HIT_COUNT_DESC = "L2 cache hit count."; 414 String L2_CACHE_MISS_COUNT = "l2CacheMissCount"; 415 String L2_CACHE_MISS_COUNT_DESC = "L2 cache miss count."; 416 String L2_CACHE_HIT_RATIO = "l2CacheHitRatio"; 417 String L2_CACHE_HIT_RATIO_DESC = "L2 cache hit ratio."; 418 String L2_CACHE_MISS_RATIO = "l2CacheMissRatio"; 419 String L2_CACHE_MISS_RATIO_DESC = "L2 cache miss ratio."; 420 String RS_START_TIME_NAME = "regionServerStartTime"; 421 String ZOOKEEPER_QUORUM_NAME = "zookeeperQuorum"; 422 String SERVER_NAME_NAME = "serverName"; 423 String CLUSTER_ID_NAME = "clusterId"; 424 String RS_START_TIME_DESC = "RegionServer Start Time"; 425 String ZOOKEEPER_QUORUM_DESC = "ZooKeeper Quorum"; 426 String SERVER_NAME_DESC = "Server Name"; 427 String CLUSTER_ID_DESC = "Cluster Id"; 428 String UPDATES_BLOCKED_TIME = "updatesBlockedTime"; 429 String UPDATES_BLOCKED_DESC = 430 "Number of MS updates have been blocked so that the memstore can be flushed."; 431 String DELETE_KEY = "delete"; 432 String CHECK_AND_DELETE_KEY = "checkAndDelete"; 433 String CHECK_AND_PUT_KEY = "checkAndPut"; 434 String CHECK_AND_MUTATE_KEY = "checkAndMutate"; 435 String DELETE_BATCH_KEY = "deleteBatch"; 436 String GET_SIZE_KEY = "getSize"; 437 String GET_KEY = "get"; 438 String INCREMENT_KEY = "increment"; 439 String PUT_KEY = "put"; 440 String PUT_BATCH_KEY = "putBatch"; 441 String APPEND_KEY = "append"; 442 String REPLAY_KEY = "replay"; 443 String SCAN_KEY = "scan"; 444 String SCAN_SIZE_KEY = "scanSize"; 445 String SCAN_TIME_KEY = "scanTime"; 446 447 String BLOCK_BYTES_SCANNED_KEY = "blockBytesScannedCount"; 448 String BLOCK_BYTES_SCANNED_DESC = "Count of block bytes scanned by read requests"; 449 String GET_BLOCK_BYTES_SCANNED_KEY = "getBlockBytesScanned"; 450 String SCAN_BLOCK_BYTES_SCANNED_KEY = "scanBlockBytesScanned"; 451 String CHECK_AND_MUTATE_BLOCK_BYTES_SCANNED_KEY = "checkAndMutateBlockBytesScanned"; 452 String INCREMENT_BLOCK_BYTES_SCANNED_KEY = "incrementBlockBytesScanned"; 453 String APPEND_BLOCK_BYTES_SCANNED_KEY = "appendBlockBytesScanned"; 454 String SLOW_PUT_KEY = "slowPutCount"; 455 String SLOW_GET_KEY = "slowGetCount"; 456 String SLOW_DELETE_KEY = "slowDeleteCount"; 457 String SLOW_INCREMENT_KEY = "slowIncrementCount"; 458 String SLOW_APPEND_KEY = "slowAppendCount"; 459 String SLOW_PUT_DESC = "The number of batches containing puts that took over 1000ms to complete"; 460 String SLOW_DELETE_DESC = 461 "The number of batches containing delete(s) that took over 1000ms to complete"; 462 String SLOW_GET_DESC = "The number of Gets that took over 1000ms to complete"; 463 String SLOW_INCREMENT_DESC = "The number of Increments that took over 1000ms to complete"; 464 String SLOW_APPEND_DESC = "The number of Appends that took over 1000ms to complete"; 465 466 String FLUSHED_CELLS = "flushedCellsCount"; 467 String FLUSHED_CELLS_DESC = "The number of cells flushed to disk"; 468 String FLUSHED_CELLS_SIZE = "flushedCellsSize"; 469 String FLUSHED_CELLS_SIZE_DESC = "The total amount of data flushed to disk, in bytes"; 470 String COMPACTED_CELLS = "compactedCellsCount"; 471 String COMPACTED_CELLS_DESC = "The number of cells processed during minor compactions"; 472 String COMPACTED_CELLS_SIZE = "compactedCellsSize"; 473 String COMPACTED_CELLS_SIZE_DESC = 474 "The total amount of data processed during minor compactions, in bytes"; 475 String MAJOR_COMPACTED_CELLS = "majorCompactedCellsCount"; 476 String MAJOR_COMPACTED_CELLS_DESC = "The number of cells processed during major compactions"; 477 String MAJOR_COMPACTED_CELLS_SIZE = "majorCompactedCellsSize"; 478 String MAJOR_COMPACTED_CELLS_SIZE_DESC = 479 "The total amount of data processed during major compactions, in bytes"; 480 String CELLS_COUNT_COMPACTED_TO_MOB = "cellsCountCompactedToMob"; 481 String CELLS_COUNT_COMPACTED_TO_MOB_DESC = "The number of cells moved to mob during compaction"; 482 String CELLS_COUNT_COMPACTED_FROM_MOB = "cellsCountCompactedFromMob"; 483 String CELLS_COUNT_COMPACTED_FROM_MOB_DESC = 484 "The number of cells moved from mob during compaction"; 485 String CELLS_SIZE_COMPACTED_TO_MOB = "cellsSizeCompactedToMob"; 486 String CELLS_SIZE_COMPACTED_TO_MOB_DESC = 487 "The total amount of cells move to mob during compaction, in bytes"; 488 String CELLS_SIZE_COMPACTED_FROM_MOB = "cellsSizeCompactedFromMob"; 489 String CELLS_SIZE_COMPACTED_FROM_MOB_DESC = 490 "The total amount of cells move from mob during compaction, in bytes"; 491 String MOB_FLUSH_COUNT = "mobFlushCount"; 492 String MOB_FLUSH_COUNT_DESC = "The number of the flushes in mob-enabled stores"; 493 String MOB_FLUSHED_CELLS_COUNT = "mobFlushedCellsCount"; 494 String MOB_FLUSHED_CELLS_COUNT_DESC = "The number of mob cells flushed to disk"; 495 String MOB_FLUSHED_CELLS_SIZE = "mobFlushedCellsSize"; 496 String MOB_FLUSHED_CELLS_SIZE_DESC = "The total amount of mob cells flushed to disk, in bytes"; 497 String MOB_SCAN_CELLS_COUNT = "mobScanCellsCount"; 498 String MOB_SCAN_CELLS_COUNT_DESC = "The number of scanned mob cells"; 499 String MOB_SCAN_CELLS_SIZE = "mobScanCellsSize"; 500 String MOB_SCAN_CELLS_SIZE_DESC = "The total amount of scanned mob cells, in bytes"; 501 String MOB_FILE_CACHE_ACCESS_COUNT = "mobFileCacheAccessCount"; 502 String MOB_FILE_CACHE_ACCESS_COUNT_DESC = "The count of accesses to the mob file cache"; 503 String MOB_FILE_CACHE_MISS_COUNT = "mobFileCacheMissCount"; 504 String MOB_FILE_CACHE_MISS_COUNT_DESC = "The count of misses to the mob file cache"; 505 String MOB_FILE_CACHE_HIT_PERCENT = "mobFileCacheHitPercent"; 506 String MOB_FILE_CACHE_HIT_PERCENT_DESC = "The hit percent to the mob file cache"; 507 String MOB_FILE_CACHE_EVICTED_COUNT = "mobFileCacheEvictedCount"; 508 String MOB_FILE_CACHE_EVICTED_COUNT_DESC = "The number of items evicted from the mob file cache"; 509 String MOB_FILE_CACHE_COUNT = "mobFileCacheCount"; 510 String MOB_FILE_CACHE_COUNT_DESC = "The count of cached mob files"; 511 512 String HEDGED_READS = "hedgedReads"; 513 String HEDGED_READS_DESC = "The number of times we started a hedged read"; 514 String HEDGED_READ_WINS = "hedgedReadWins"; 515 String HEDGED_READ_WINS_DESC = 516 "The number of times we started a hedged read and a hedged read won"; 517 String HEDGED_READ_IN_CUR_THREAD = "hedgedReadOpsInCurThread"; 518 String HEDGED_READ_IN_CUR_THREAD_DESC = "The number of times we execute a hedged read" 519 + " in current thread as a fallback for task rejection"; 520 521 String TOTAL_BYTES_READ = "totalBytesRead"; 522 String TOTAL_BYTES_READ_DESC = "The total number of bytes read from HDFS"; 523 String LOCAL_BYTES_READ = "localBytesRead"; 524 String LOCAL_BYTES_READ_DESC = "The number of bytes read from the local HDFS DataNode"; 525 String SHORTCIRCUIT_BYTES_READ = "shortCircuitBytesRead"; 526 String SHORTCIRCUIT_BYTES_READ_DESC = "The number of bytes read through HDFS short circuit read"; 527 String ZEROCOPY_BYTES_READ = "zeroCopyBytesRead"; 528 String ZEROCOPY_BYTES_READ_DESC = "The number of bytes read through HDFS zero copy"; 529 530 String BLOCKED_REQUESTS_COUNT = "blockedRequestCount"; 531 String BLOCKED_REQUESTS_COUNT_DESC = "The number of blocked requests because of memstore size is " 532 + "larger than blockingMemStoreSize"; 533 534 String SPLIT_KEY = "splitTime"; 535 String SPLIT_REQUEST_KEY = "splitRequestCount"; 536 String SPLIT_REQUEST_DESC = "Number of splits requested"; 537 String SPLIT_SUCCESS_KEY = "splitSuccessCount"; 538 String SPLIT_SUCCESS_DESC = "Number of successfully executed splits"; 539 540 String FLUSH_TIME = "flushTime"; 541 String FLUSH_TIME_DESC = "Histogram for the time in millis for memstore flush"; 542 String FLUSH_MEMSTORE_SIZE = "flushMemstoreSize"; 543 String FLUSH_MEMSTORE_SIZE_DESC = "Histogram for number of bytes in the memstore for a flush"; 544 String FLUSH_OUTPUT_SIZE = "flushOutputSize"; 545 String FLUSH_OUTPUT_SIZE_DESC = "Histogram for number of bytes in the resulting file for a flush"; 546 String FLUSHED_OUTPUT_BYTES = "flushedOutputBytes"; 547 String FLUSHED_OUTPUT_BYTES_DESC = "Total number of bytes written from flush"; 548 String FLUSHED_MEMSTORE_BYTES = "flushedMemstoreBytes"; 549 String FLUSHED_MEMSTORE_BYTES_DESC = "Total number of bytes of cells in memstore from flush"; 550 551 String COMPACTION_TIME = "compactionTime"; 552 String COMPACTION_TIME_DESC = 553 "Histogram for the time in millis for compaction, both major and minor"; 554 String COMPACTION_INPUT_FILE_COUNT = "compactionInputFileCount"; 555 String COMPACTION_INPUT_FILE_COUNT_DESC = 556 "Histogram for the compaction input number of files, both major and minor"; 557 String COMPACTION_INPUT_SIZE = "compactionInputSize"; 558 String COMPACTION_INPUT_SIZE_DESC = 559 "Histogram for the compaction total input file sizes, both major and minor"; 560 String COMPACTION_OUTPUT_FILE_COUNT = "compactionOutputFileCount"; 561 String COMPACTION_OUTPUT_FILE_COUNT_DESC = 562 "Histogram for the compaction output number of files, both major and minor"; 563 String COMPACTION_OUTPUT_SIZE = "compactionOutputSize"; 564 String COMPACTION_OUTPUT_SIZE_DESC = 565 "Histogram for the compaction total output file sizes, both major and minor"; 566 String COMPACTED_INPUT_BYTES = "compactedInputBytes"; 567 String COMPACTED_INPUT_BYTES_DESC = 568 "Total number of bytes that is read for compaction, both major and minor"; 569 String COMPACTED_OUTPUT_BYTES = "compactedOutputBytes"; 570 String COMPACTED_OUTPUT_BYTES_DESC = 571 "Total number of bytes that is output from compaction, both major and minor"; 572 573 String MAJOR_COMPACTION_TIME = "majorCompactionTime"; 574 String MAJOR_COMPACTION_TIME_DESC = "Histogram for the time in millis for compaction, major only"; 575 String MAJOR_COMPACTION_INPUT_FILE_COUNT = "majorCompactionInputFileCount"; 576 String MAJOR_COMPACTION_INPUT_FILE_COUNT_DESC = 577 "Histogram for the compaction input number of files, major only"; 578 String MAJOR_COMPACTION_INPUT_SIZE = "majorCompactionInputSize"; 579 String MAJOR_COMPACTION_INPUT_SIZE_DESC = 580 "Histogram for the compaction total input file sizes, major only"; 581 String MAJOR_COMPACTION_OUTPUT_FILE_COUNT = "majorCompactionOutputFileCount"; 582 String MAJOR_COMPACTION_OUTPUT_FILE_COUNT_DESC = 583 "Histogram for the compaction output number of files, major only"; 584 String MAJOR_COMPACTION_OUTPUT_SIZE = "majorCompactionOutputSize"; 585 String MAJOR_COMPACTION_OUTPUT_SIZE_DESC = 586 "Histogram for the compaction total output file sizes, major only"; 587 String MAJOR_COMPACTED_INPUT_BYTES = "majorCompactedInputBytes"; 588 String MAJOR_COMPACTED_INPUT_BYTES_DESC = 589 "Total number of bytes that is read for compaction, major only"; 590 String MAJOR_COMPACTED_OUTPUT_BYTES = "majorCompactedOutputBytes"; 591 String MAJOR_COMPACTED_OUTPUT_BYTES_DESC = 592 "Total number of bytes that is output from compaction, major only"; 593 594 String RPC_GET_REQUEST_COUNT = "rpcGetRequestCount"; 595 String RPC_GET_REQUEST_COUNT_DESC = "Number of rpc get requests this RegionServer has answered."; 596 String RPC_SCAN_REQUEST_COUNT = "rpcScanRequestCount"; 597 String RPC_SCAN_REQUEST_COUNT_DESC = 598 "Number of rpc scan requests this RegionServer has answered."; 599 String RPC_FULL_SCAN_REQUEST_COUNT = "rpcFullScanRequestCount"; 600 String RPC_FULL_SCAN_REQUEST_COUNT_DESC = 601 "Number of rpc scan requests that were possible full region scans."; 602 String RPC_MULTI_REQUEST_COUNT = "rpcMultiRequestCount"; 603 String RPC_MULTI_REQUEST_COUNT_DESC = 604 "Number of rpc multi requests this RegionServer has answered."; 605 String RPC_MUTATE_REQUEST_COUNT = "rpcMutateRequestCount"; 606 String RPC_MUTATE_REQUEST_COUNT_DESC = 607 "Number of rpc mutation requests this RegionServer has answered."; 608 String MAX_STOREFILE_COUNT = "maxStoreFileCount"; 609 String MAX_STOREFILE_COUNT_DESC = "Max store file count across all regions"; 610 String AVERAGE_REGION_SIZE = "averageRegionSize"; 611 String AVERAGE_REGION_SIZE_DESC = 612 "Average region size over the RegionServer including memstore and storefile sizes."; 613 614 /** Metrics for {@link org.apache.hadoop.hbase.io.ByteBuffAllocator} **/ 615 String BYTE_BUFF_ALLOCATOR_HEAP_ALLOCATION_BYTES = "ByteBuffAllocatorHeapAllocationBytes"; 616 String BYTE_BUFF_ALLOCATOR_HEAP_ALLOCATION_BYTES_DESC = 617 "Bytes of heap allocation from ByteBuffAllocator"; 618 String BYTE_BUFF_ALLOCATOR_POOL_ALLOCATION_BYTES = "ByteBuffAllocatorPoolAllocationBytes"; 619 String BYTE_BUFF_ALLOCATOR_POOL_ALLOCATION_BYTES_DESC = 620 "Bytes of pool allocation from ByteBuffAllocator"; 621 String BYTE_BUFF_ALLOCATOR_HEAP_ALLOCATION_RATIO = "ByteBuffAllocatorHeapAllocationRatio"; 622 String BYTE_BUFF_ALLOCATOR_HEAP_ALLOCATION_RATIO_DESC = 623 "Ratio of heap allocation from ByteBuffAllocator, means heapAllocation/totalAllocation"; 624 String BYTE_BUFF_ALLOCATOR_TOTAL_BUFFER_COUNT = "ByteBuffAllocatorTotalBufferCount"; 625 String BYTE_BUFF_ALLOCATOR_TOTAL_BUFFER_COUNT_DESC = "Total buffer count in ByteBuffAllocator"; 626 String BYTE_BUFF_ALLOCATOR_USED_BUFFER_COUNT = "ByteBuffAllocatorUsedBufferCount"; 627 String BYTE_BUFF_ALLOCATOR_USED_BUFFER_COUNT_DESC = "Used buffer count in ByteBuffAllocator"; 628 629 String ACTIVE_SCANNERS = "activeScanners"; 630 String ACTIVE_SCANNERS_DESC = "Gauge of currently active scanners"; 631 632 String SCANNER_LEASE_EXPIRED_COUNT = "scannerLeaseExpiredCount"; 633 String SCANNER_LEASE_EXPIRED_COUNT_DESC = 634 "Count of scanners which were expired due to scanner lease timeout"; 635}