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