1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.hadoop.hbase.regionserver;
20
21 import org.apache.hadoop.hbase.metrics.BaseSource;
22 import org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource;
23
24
25
26
27 public interface MetricsRegionServerSource extends BaseSource, JvmPauseMonitorSource {
28
29
30
31
32 String METRICS_NAME = "Server";
33
34
35
36
37 String METRICS_CONTEXT = "regionserver";
38
39
40
41
42 String METRICS_DESCRIPTION = "Metrics about HBase RegionServer";
43
44
45
46
47 String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME;
48
49
50
51
52
53
54 void updatePut(long t);
55
56
57
58
59
60
61 void updateDelete(long t);
62
63
64
65
66
67
68 void updateGet(long t);
69
70
71
72
73
74
75 void updateIncrement(long t);
76
77
78
79
80
81
82 void updateAppend(long t);
83
84
85
86
87
88
89 void updateReplay(long t);
90
91
92
93
94
95
96 void updateScanSize(long scanSize);
97
98
99
100
101 void updateScanTime(long t);
102
103
104
105
106 void incrSlowPut();
107
108
109
110
111 void incrSlowDelete();
112
113
114
115
116 void incrSlowGet();
117
118
119
120
121 void incrSlowIncrement();
122
123
124
125
126 void incrSlowAppend();
127
128
129
130
131
132 void updateSplitTime(long t);
133
134
135
136
137 void incrSplitRequest();
138
139
140
141
142 void incrSplitSuccess();
143
144
145
146
147
148 void updateFlushTime(long t);
149
150
151
152
153
154 void updateFlushMemstoreSize(long bytes);
155
156
157
158
159
160 void updateFlushOutputSize(long bytes);
161
162
163
164
165
166
167 void updateCompactionTime(boolean isMajor, long t);
168
169
170
171
172
173
174 void updateCompactionInputFileCount(boolean isMajor, long c);
175
176
177
178
179
180
181 void updateCompactionInputSize(boolean isMajor, long bytes);
182
183
184
185
186
187
188 void updateCompactionOutputFileCount(boolean isMajor, long c);
189
190
191
192
193
194
195 void updateCompactionOutputSize(boolean isMajor, long bytes);
196
197
198 String REGION_COUNT = "regionCount";
199 String REGION_COUNT_DESC = "Number of regions";
200 String STORE_COUNT = "storeCount";
201 String STORE_COUNT_DESC = "Number of Stores";
202 String WALFILE_COUNT = "hlogFileCount";
203 String WALFILE_COUNT_DESC = "Number of WAL Files";
204 String WALFILE_SIZE = "hlogFileSize";
205 String WALFILE_SIZE_DESC = "Size of all WAL Files";
206 String STOREFILE_COUNT = "storeFileCount";
207 String STOREFILE_COUNT_DESC = "Number of Store Files";
208 String MEMSTORE_SIZE = "memStoreSize";
209 String MEMSTORE_SIZE_DESC = "Size of the memstore";
210 String STOREFILE_SIZE = "storeFileSize";
211 String MAX_STORE_FILE_AGE = "maxStoreFileAge";
212 String MIN_STORE_FILE_AGE = "minStoreFileAge";
213 String AVG_STORE_FILE_AGE = "avgStoreFileAge";
214 String NUM_REFERENCE_FILES = "numReferenceFiles";
215 String MAX_STORE_FILE_AGE_DESC = "Max age of store files hosted on this region server";
216 String MIN_STORE_FILE_AGE_DESC = "Min age of store files hosted on this region server";
217 String AVG_STORE_FILE_AGE_DESC = "Average age of store files hosted on this region server";
218 String NUM_REFERENCE_FILES_DESC = "Number of reference file on this region server";
219 String STOREFILE_SIZE_DESC = "Size of storefiles being served.";
220 String TOTAL_REQUEST_COUNT = "totalRequestCount";
221 String TOTAL_REQUEST_COUNT_DESC =
222 "Total number of requests this RegionServer has answered.";
223 String READ_REQUEST_COUNT = "readRequestCount";
224 String READ_REQUEST_COUNT_DESC =
225 "Number of read requests this region server has answered.";
226 String WRITE_REQUEST_COUNT = "writeRequestCount";
227 String WRITE_REQUEST_COUNT_DESC =
228 "Number of mutation requests this region server has answered.";
229 String CHECK_MUTATE_FAILED_COUNT = "checkMutateFailedCount";
230 String CHECK_MUTATE_FAILED_COUNT_DESC =
231 "Number of Check and Mutate calls that failed the checks.";
232 String CHECK_MUTATE_PASSED_COUNT = "checkMutatePassedCount";
233 String CHECK_MUTATE_PASSED_COUNT_DESC =
234 "Number of Check and Mutate calls that passed the checks.";
235 String STOREFILE_INDEX_SIZE = "storeFileIndexSize";
236 String STOREFILE_INDEX_SIZE_DESC = "Size of indexes in storefiles on disk.";
237 String STATIC_INDEX_SIZE = "staticIndexSize";
238 String STATIC_INDEX_SIZE_DESC = "Uncompressed size of the static indexes.";
239 String STATIC_BLOOM_SIZE = "staticBloomSize";
240 String STATIC_BLOOM_SIZE_DESC =
241 "Uncompressed size of the static bloom filters.";
242 String NUMBER_OF_MUTATIONS_WITHOUT_WAL = "mutationsWithoutWALCount";
243 String NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC =
244 "Number of mutations that have been sent by clients with the write ahead logging turned off.";
245 String DATA_SIZE_WITHOUT_WAL = "mutationsWithoutWALSize";
246 String DATA_SIZE_WITHOUT_WAL_DESC =
247 "Size of data that has been sent by clients with the write ahead logging turned off.";
248 String PERCENT_FILES_LOCAL = "percentFilesLocal";
249 String PERCENT_FILES_LOCAL_DESC =
250 "The percent of HFiles that are stored on the local hdfs data node.";
251 String PERCENT_FILES_LOCAL_SECONDARY_REGIONS = "percentFilesLocalSecondaryRegions";
252 String PERCENT_FILES_LOCAL_SECONDARY_REGIONS_DESC =
253 "The percent of HFiles used by secondary regions that are stored on the local hdfs data node.";
254 String SPLIT_QUEUE_LENGTH = "splitQueueLength";
255 String SPLIT_QUEUE_LENGTH_DESC = "Length of the queue for splits.";
256 String COMPACTION_QUEUE_LENGTH = "compactionQueueLength";
257 String LARGE_COMPACTION_QUEUE_LENGTH = "largeCompactionQueueLength";
258 String SMALL_COMPACTION_QUEUE_LENGTH = "smallCompactionQueueLength";
259 String COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions.";
260 String LARGE_COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions with input size "
261 + "larger than throttle threshold (2.5GB by default)";
262 String SMALL_COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions with input size "
263 + "smaller than throttle threshold (2.5GB by default)";
264 String FLUSH_QUEUE_LENGTH = "flushQueueLength";
265 String FLUSH_QUEUE_LENGTH_DESC = "Length of the queue for region flushes";
266 String BLOCK_CACHE_FREE_SIZE = "blockCacheFreeSize";
267 String BLOCK_CACHE_FREE_DESC =
268 "Size of the block cache that is not occupied.";
269 String BLOCK_CACHE_COUNT = "blockCacheCount";
270 String BLOCK_CACHE_COUNT_DESC = "Number of block in the block cache.";
271 String BLOCK_CACHE_SIZE = "blockCacheSize";
272 String BLOCK_CACHE_SIZE_DESC = "Size of the block cache.";
273 String BLOCK_CACHE_HIT_COUNT = "blockCacheHitCount";
274 String BLOCK_CACHE_HIT_COUNT_DESC = "Count of the hit on the block cache.";
275 String BLOCK_CACHE_PRIMARY_HIT_COUNT = "blockCacheHitCountPrimary";
276 String BLOCK_CACHE_PRIMARY_HIT_COUNT_DESC = "Count of hit on primary replica in the block cache.";
277 String BLOCK_CACHE_MISS_COUNT = "blockCacheMissCount";
278 String BLOCK_COUNT_MISS_COUNT_DESC =
279 "Number of requests for a block that missed the block cache.";
280 String BLOCK_CACHE_PRIMARY_MISS_COUNT = "blockCacheMissCountPrimary";
281 String BLOCK_COUNT_PRIMARY_MISS_COUNT_DESC =
282 "Number of requests for a block of primary replica that missed the block cache.";
283 String BLOCK_CACHE_EVICTION_COUNT = "blockCacheEvictionCount";
284 String BLOCK_CACHE_EVICTION_COUNT_DESC =
285 "Count of the number of blocks evicted from the block cache.";
286 String BLOCK_CACHE_PRIMARY_EVICTION_COUNT = "blockCacheEvictionCountPrimary";
287 String BLOCK_CACHE_PRIMARY_EVICTION_COUNT_DESC =
288 "Count of the number of blocks evicted from primary replica in the block cache.";
289 String BLOCK_CACHE_HIT_PERCENT = "blockCacheCountHitPercent";
290 String BLOCK_CACHE_HIT_PERCENT_DESC =
291 "Percent of block cache requests that are hits";
292 String BLOCK_CACHE_EXPRESS_HIT_PERCENT = "blockCacheExpressHitPercent";
293 String BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC =
294 "The percent of the time that requests with the cache turned on hit the cache.";
295 String BLOCK_CACHE_DATA_MISS_COUNT = "blockCacheDataMissCount";
296 String BLOCK_CACHE_ENCODED_DATA_MISS_COUNT = "blockCacheEncodedDataMissCount";
297 String BLOCK_CACHE_LEAF_INDEX_MISS_COUNT = "blockCacheLeafIndexMissCount";
298 String BLOCK_CACHE_BLOOM_CHUNK_MISS_COUNT = "blockCacheBloomChunkMissCount";
299 String BLOCK_CACHE_META_MISS_COUNT = "blockCacheMetaMissCount";
300 String BLOCK_CACHE_ROOT_INDEX_MISS_COUNT = "blockCacheRootIndexMissCount";
301 String BLOCK_CACHE_INTERMEDIATE_INDEX_MISS_COUNT = "blockCacheIntermediateIndexMissCount";
302 String BLOCK_CACHE_FILE_INFO_MISS_COUNT = "blockCacheFileInfoMissCount";
303 String BLOCK_CACHE_GENERAL_BLOOM_META_MISS_COUNT = "blockCacheGeneralBloomMetaMissCount";
304 String BLOCK_CACHE_DELETE_FAMILY_BLOOM_MISS_COUNT = "blockCacheDeleteFamilyBloomMissCount";
305 String BLOCK_CACHE_TRAILER_MISS_COUNT = "blockCacheTrailerMissCount";
306 String BLOCK_CACHE_DATA_HIT_COUNT = "blockCacheDataHitCount";
307 String BLOCK_CACHE_ENCODED_DATA_HIT_COUNT = "blockCacheEncodedDataHitCount";
308 String BLOCK_CACHE_LEAF_INDEX_HIT_COUNT = "blockCacheLeafIndexHitCount";
309 String BLOCK_CACHE_BLOOM_CHUNK_HIT_COUNT = "blockCacheBloomChunkHitCount";
310 String BLOCK_CACHE_META_HIT_COUNT = "blockCacheMetaHitCount";
311 String BLOCK_CACHE_ROOT_INDEX_HIT_COUNT = "blockCacheRootIndexHitCount";
312 String BLOCK_CACHE_INTERMEDIATE_INDEX_HIT_COUNT = "blockCacheIntermediateIndexHitCount";
313 String BLOCK_CACHE_FILE_INFO_HIT_COUNT = "blockCacheFileInfoHitCount";
314 String BLOCK_CACHE_GENERAL_BLOOM_META_HIT_COUNT = "blockCacheGeneralBloomMetaHitCount";
315 String BLOCK_CACHE_DELETE_FAMILY_BLOOM_HIT_COUNT = "blockCacheDeleteFamilyBloomHitCount";
316 String BLOCK_CACHE_TRAILER_HIT_COUNT = "blockCacheTrailerHitCount";
317 String RS_START_TIME_NAME = "regionServerStartTime";
318 String ZOOKEEPER_QUORUM_NAME = "zookeeperQuorum";
319 String SERVER_NAME_NAME = "serverName";
320 String CLUSTER_ID_NAME = "clusterId";
321 String RS_START_TIME_DESC = "RegionServer Start Time";
322 String ZOOKEEPER_QUORUM_DESC = "Zookeeper Quorum";
323 String SERVER_NAME_DESC = "Server Name";
324 String CLUSTER_ID_DESC = "Cluster Id";
325 String UPDATES_BLOCKED_TIME = "updatesBlockedTime";
326 String UPDATES_BLOCKED_DESC =
327 "Number of MS updates have been blocked so that the memstore can be flushed.";
328 String DELETE_KEY = "delete";
329 String GET_SIZE_KEY = "getSize";
330 String GET_KEY = "get";
331 String INCREMENT_KEY = "increment";
332 String MUTATE_KEY = "mutate";
333 String APPEND_KEY = "append";
334 String REPLAY_KEY = "replay";
335 String SCAN_KEY = "scan";
336 String SCAN_SIZE_KEY = "scanSize";
337 String SCAN_TIME_KEY = "scanTime";
338
339 String SLOW_MUTATE_KEY = "slowPutCount";
340 String SLOW_GET_KEY = "slowGetCount";
341 String SLOW_DELETE_KEY = "slowDeleteCount";
342 String SLOW_INCREMENT_KEY = "slowIncrementCount";
343 String SLOW_APPEND_KEY = "slowAppendCount";
344 String SLOW_MUTATE_DESC =
345 "The number of Multis that took over 1000ms to complete";
346 String SLOW_DELETE_DESC =
347 "The number of Deletes that took over 1000ms to complete";
348 String SLOW_GET_DESC = "The number of Gets that took over 1000ms to complete";
349 String SLOW_INCREMENT_DESC =
350 "The number of Increments that took over 1000ms to complete";
351 String SLOW_APPEND_DESC =
352 "The number of Appends that took over 1000ms to complete";
353
354 String FLUSHED_CELLS = "flushedCellsCount";
355 String FLUSHED_CELLS_DESC = "The number of cells flushed to disk";
356 String FLUSHED_CELLS_SIZE = "flushedCellsSize";
357 String FLUSHED_CELLS_SIZE_DESC = "The total amount of data flushed to disk, in bytes";
358 String COMPACTED_CELLS = "compactedCellsCount";
359 String COMPACTED_CELLS_DESC = "The number of cells processed during minor compactions";
360 String COMPACTED_CELLS_SIZE = "compactedCellsSize";
361 String COMPACTED_CELLS_SIZE_DESC =
362 "The total amount of data processed during minor compactions, in bytes";
363 String MAJOR_COMPACTED_CELLS = "majorCompactedCellsCount";
364 String MAJOR_COMPACTED_CELLS_DESC =
365 "The number of cells processed during major compactions";
366 String MAJOR_COMPACTED_CELLS_SIZE = "majorCompactedCellsSize";
367 String MAJOR_COMPACTED_CELLS_SIZE_DESC =
368 "The total amount of data processed during major compactions, in bytes";
369 String CELLS_COUNT_COMPACTED_TO_MOB = "cellsCountCompactedToMob";
370 String CELLS_COUNT_COMPACTED_TO_MOB_DESC =
371 "The number of cells moved to mob during compaction";
372 String CELLS_COUNT_COMPACTED_FROM_MOB = "cellsCountCompactedFromMob";
373 String CELLS_COUNT_COMPACTED_FROM_MOB_DESC =
374 "The number of cells moved from mob during compaction";
375 String CELLS_SIZE_COMPACTED_TO_MOB = "cellsSizeCompactedToMob";
376 String CELLS_SIZE_COMPACTED_TO_MOB_DESC =
377 "The total amount of cells move to mob during compaction, in bytes";
378 String CELLS_SIZE_COMPACTED_FROM_MOB = "cellsSizeCompactedFromMob";
379 String CELLS_SIZE_COMPACTED_FROM_MOB_DESC =
380 "The total amount of cells move from mob during compaction, in bytes";
381 String MOB_FLUSH_COUNT = "mobFlushCount";
382 String MOB_FLUSH_COUNT_DESC = "The number of the flushes in mob-enabled stores";
383 String MOB_FLUSHED_CELLS_COUNT = "mobFlushedCellsCount";
384 String MOB_FLUSHED_CELLS_COUNT_DESC = "The number of mob cells flushed to disk";
385 String MOB_FLUSHED_CELLS_SIZE = "mobFlushedCellsSize";
386 String MOB_FLUSHED_CELLS_SIZE_DESC = "The total amount of mob cells flushed to disk, in bytes";
387 String MOB_SCAN_CELLS_COUNT = "mobScanCellsCount";
388 String MOB_SCAN_CELLS_COUNT_DESC = "The number of scanned mob cells";
389 String MOB_SCAN_CELLS_SIZE = "mobScanCellsSize";
390 String MOB_SCAN_CELLS_SIZE_DESC = "The total amount of scanned mob cells, in bytes";
391 String MOB_FILE_CACHE_ACCESS_COUNT = "mobFileCacheAccessCount";
392 String MOB_FILE_CACHE_ACCESS_COUNT_DESC = "The count of accesses to the mob file cache";
393 String MOB_FILE_CACHE_MISS_COUNT = "mobFileCacheMissCount";
394 String MOB_FILE_CACHE_MISS_COUNT_DESC = "The count of misses to the mob file cache";
395 String MOB_FILE_CACHE_HIT_PERCENT = "mobFileCacheHitPercent";
396 String MOB_FILE_CACHE_HIT_PERCENT_DESC = "The hit percent to the mob file cache";
397 String MOB_FILE_CACHE_EVICTED_COUNT = "mobFileCacheEvictedCount";
398 String MOB_FILE_CACHE_EVICTED_COUNT_DESC = "The number of items evicted from the mob file cache";
399 String MOB_FILE_CACHE_COUNT = "mobFileCacheCount";
400 String MOB_FILE_CACHE_COUNT_DESC = "The count of cached mob files";
401
402 String BLOCKED_REQUESTS_COUNT = "blockedRequestCount";
403 String BLOCKED_REQUESTS_COUNT_DESC = "The number of blocked requests because of memstore size is "
404 + "larger than blockingMemStoreSize";
405
406 String SPLIT_KEY = "splitTime";
407 String SPLIT_REQUEST_KEY = "splitRequestCount";
408 String SPLIT_REQUEST_DESC = "Number of splits requested";
409 String SPLIT_SUCCESS_KEY = "splitSuccessCount";
410 String SPLIT_SUCCESS_DESC = "Number of successfully executed splits";
411
412 String FLUSH_TIME = "flushTime";
413 String FLUSH_TIME_DESC = "Histogram for the time in millis for memstore flush";
414 String FLUSH_MEMSTORE_SIZE = "flushMemstoreSize";
415 String FLUSH_MEMSTORE_SIZE_DESC = "Histogram for number of bytes in the memstore for a flush";
416 String FLUSH_OUTPUT_SIZE = "flushOutputSize";
417 String FLUSH_OUTPUT_SIZE_DESC = "Histogram for number of bytes in the resulting file for a flush";
418 String FLUSHED_OUTPUT_BYTES = "flushedOutputBytes";
419 String FLUSHED_OUTPUT_BYTES_DESC = "Total number of bytes written from flush";
420 String FLUSHED_MEMSTORE_BYTES = "flushedMemstoreBytes";
421 String FLUSHED_MEMSTORE_BYTES_DESC = "Total number of bytes of cells in memstore from flush";
422
423 String COMPACTION_TIME = "compactionTime";
424 String COMPACTION_TIME_DESC
425 = "Histogram for the time in millis for compaction, both major and minor";
426 String COMPACTION_INPUT_FILE_COUNT = "compactionInputFileCount";
427 String COMPACTION_INPUT_FILE_COUNT_DESC
428 = "Histogram for the compaction input number of files, both major and minor";
429 String COMPACTION_INPUT_SIZE = "compactionInputSize";
430 String COMPACTION_INPUT_SIZE_DESC
431 = "Histogram for the compaction total input file sizes, both major and minor";
432 String COMPACTION_OUTPUT_FILE_COUNT = "compactionOutputFileCount";
433 String COMPACTION_OUTPUT_FILE_COUNT_DESC
434 = "Histogram for the compaction output number of files, both major and minor";
435 String COMPACTION_OUTPUT_SIZE = "compactionOutputSize";
436 String COMPACTION_OUTPUT_SIZE_DESC
437 = "Histogram for the compaction total output file sizes, both major and minor";
438 String COMPACTED_INPUT_BYTES = "compactedInputBytes";
439 String COMPACTED_INPUT_BYTES_DESC
440 = "Total number of bytes that is read for compaction, both major and minor";
441 String COMPACTED_OUTPUT_BYTES = "compactedOutputBytes";
442 String COMPACTED_OUTPUT_BYTES_DESC
443 = "Total number of bytes that is output from compaction, both major and minor";
444
445 String MAJOR_COMPACTION_TIME = "majorCompactionTime";
446 String MAJOR_COMPACTION_TIME_DESC
447 = "Histogram for the time in millis for compaction, major only";
448 String MAJOR_COMPACTION_INPUT_FILE_COUNT = "majorCompactionInputFileCount";
449 String MAJOR_COMPACTION_INPUT_FILE_COUNT_DESC
450 = "Histogram for the compaction input number of files, major only";
451 String MAJOR_COMPACTION_INPUT_SIZE = "majorCompactionInputSize";
452 String MAJOR_COMPACTION_INPUT_SIZE_DESC
453 = "Histogram for the compaction total input file sizes, major only";
454 String MAJOR_COMPACTION_OUTPUT_FILE_COUNT = "majorCompactionOutputFileCount";
455 String MAJOR_COMPACTION_OUTPUT_FILE_COUNT_DESC
456 = "Histogram for the compaction output number of files, major only";
457 String MAJOR_COMPACTION_OUTPUT_SIZE = "majorCompactionOutputSize";
458 String MAJOR_COMPACTION_OUTPUT_SIZE_DESC
459 = "Histogram for the compaction total output file sizes, major only";
460 String MAJOR_COMPACTED_INPUT_BYTES = "majorCompactedInputBytes";
461 String MAJOR_COMPACTED_INPUT_BYTES_DESC
462 = "Total number of bytes that is read for compaction, major only";
463 String MAJOR_COMPACTED_OUTPUT_BYTES = "majorCompactedOutputBytes";
464 String MAJOR_COMPACTED_OUTPUT_BYTES_DESC
465 = "Total number of bytes that is output from compaction, major only";
466
467 String RPC_GET_REQUEST_COUNT = "rpcGetRequestCount";
468 String RPC_GET_REQUEST_COUNT_DESC = "Number of rpc get requests this region server has answered.";
469 String RPC_SCAN_REQUEST_COUNT = "rpcScanRequestCount";
470 String RPC_SCAN_REQUEST_COUNT_DESC =
471 "Number of rpc scan requests this region server has answered.";
472 String RPC_MULTI_REQUEST_COUNT = "rpcMultiRequestCount";
473 String RPC_MULTI_REQUEST_COUNT_DESC =
474 "Number of rpc multi requests this region server has answered.";
475 String RPC_MUTATE_REQUEST_COUNT = "rpcMutateRequestCount";
476 String RPC_MUTATE_REQUEST_COUNT_DESC =
477 "Number of rpc mutation requests this region server has answered.";
478 String AVERAGE_REGION_SIZE = "averageRegionSize";
479 String AVERAGE_REGION_SIZE_DESC =
480 "Average region size over the region server including memstore and storefile sizes.";
481 }