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
23
24
25
26 public interface MetricsRegionServerSource extends BaseSource {
27
28
29
30
31 String METRICS_NAME = "Server";
32
33
34
35
36 String METRICS_CONTEXT = "regionserver";
37
38
39
40
41 String METRICS_DESCRIPTION = "Metrics about HBase RegionServer";
42
43
44
45
46 String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME;
47
48
49
50
51
52
53 void updatePut(long t);
54
55
56
57
58
59
60 void updateDelete(long t);
61
62
63
64
65
66
67 void updateGet(long t);
68
69
70
71
72
73
74 void updateIncrement(long t);
75
76
77
78
79
80
81 void updateAppend(long t);
82
83
84
85
86
87
88 void updateReplay(long t);
89
90
91
92
93
94
95 void updateScannerNext(long scanSize);
96
97
98
99
100 void incrSlowPut();
101
102
103
104
105 void incrSlowDelete();
106
107
108
109
110 void incrSlowGet();
111
112
113
114
115 void incrSlowIncrement();
116
117
118
119
120 void incrSlowAppend();
121
122
123
124
125
126 void updateSplitTime(long t);
127
128
129
130
131 void incrSplitRequest();
132
133
134
135
136 void incrSplitSuccess();
137
138
139
140
141
142 void updateFlushTime(long t);
143
144
145 String REGION_COUNT = "regionCount";
146 String REGION_COUNT_DESC = "Number of regions";
147 String STORE_COUNT = "storeCount";
148 String STORE_COUNT_DESC = "Number of Stores";
149 String HLOGFILE_COUNT = "hlogFileCount";
150 String HLOGFILE_COUNT_DESC = "Number of HLog Files";
151 String HLOGFILE_SIZE = "hlogFileSize";
152 String HLOGFILE_SIZE_DESC = "Size of all HLog Files";
153 String STOREFILE_COUNT = "storeFileCount";
154 String STOREFILE_COUNT_DESC = "Number of Store Files";
155 String MEMSTORE_SIZE = "memStoreSize";
156 String MEMSTORE_SIZE_DESC = "Size of the memstore";
157 String STOREFILE_SIZE = "storeFileSize";
158 String MAX_STORE_FILE_AGE = "maxStoreFileAge";
159 String MIN_STORE_FILE_AGE = "minStoreFileAge";
160 String AVG_STORE_FILE_AGE = "avgStoreFileAge";
161 String NUM_REFERENCE_FILES = "numReferenceFiles";
162 String MAX_STORE_FILE_AGE_DESC = "Max age of store files hosted on this region server";
163 String MIN_STORE_FILE_AGE_DESC = "Min age of store files hosted on this region server";
164 String AVG_STORE_FILE_AGE_DESC = "Average age of store files hosted on this region server";
165 String NUM_REFERENCE_FILES_DESC = "Number of reference file on this region server";
166 String STOREFILE_SIZE_DESC = "Size of storefiles being served.";
167 String TOTAL_REQUEST_COUNT = "totalRequestCount";
168 String TOTAL_REQUEST_COUNT_DESC =
169 "Total number of requests this RegionServer has answered.";
170 String READ_REQUEST_COUNT = "readRequestCount";
171 String READ_REQUEST_COUNT_DESC =
172 "Number of read requests this region server has answered.";
173 String WRITE_REQUEST_COUNT = "writeRequestCount";
174 String WRITE_REQUEST_COUNT_DESC =
175 "Number of mutation requests this region server has answered.";
176 String CHECK_MUTATE_FAILED_COUNT = "checkMutateFailedCount";
177 String CHECK_MUTATE_FAILED_COUNT_DESC =
178 "Number of Check and Mutate calls that failed the checks.";
179 String CHECK_MUTATE_PASSED_COUNT = "checkMutatePassedCount";
180 String CHECK_MUTATE_PASSED_COUNT_DESC =
181 "Number of Check and Mutate calls that passed the checks.";
182 String STOREFILE_INDEX_SIZE = "storeFileIndexSize";
183 String STOREFILE_INDEX_SIZE_DESC = "Size of indexes in storefiles on disk.";
184 String STATIC_INDEX_SIZE = "staticIndexSize";
185 String STATIC_INDEX_SIZE_DESC = "Uncompressed size of the static indexes.";
186 String STATIC_BLOOM_SIZE = "staticBloomSize";
187 String STATIC_BLOOM_SIZE_DESC =
188 "Uncompressed size of the static bloom filters.";
189 String NUMBER_OF_MUTATIONS_WITHOUT_WAL = "mutationsWithoutWALCount";
190 String NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC =
191 "Number of mutations that have been sent by clients with the write ahead logging turned off.";
192 String DATA_SIZE_WITHOUT_WAL = "mutationsWithoutWALSize";
193 String DATA_SIZE_WITHOUT_WAL_DESC =
194 "Size of data that has been sent by clients with the write ahead logging turned off.";
195 String PERCENT_FILES_LOCAL = "percentFilesLocal";
196 String PERCENT_FILES_LOCAL_DESC =
197 "The percent of HFiles that are stored on the local hdfs data node.";
198 String SPLIT_QUEUE_LENGTH = "splitQueueLength";
199 String SPLIT_QUEUE_LENGTH_DESC = "Length of the queue for splits.";
200 String COMPACTION_QUEUE_LENGTH = "compactionQueueLength";
201 String LARGE_COMPACTION_QUEUE_LENGTH = "largeCompactionQueueLength";
202 String SMALL_COMPACTION_QUEUE_LENGTH = "smallCompactionQueueLength";
203 String COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions.";
204 String FLUSH_QUEUE_LENGTH = "flushQueueLength";
205 String FLUSH_QUEUE_LENGTH_DESC = "Length of the queue for region flushes";
206 String BLOCK_CACHE_FREE_SIZE = "blockCacheFreeSize";
207 String BLOCK_CACHE_FREE_DESC =
208 "Size of the block cache that is not occupied.";
209 String BLOCK_CACHE_COUNT = "blockCacheCount";
210 String BLOCK_CACHE_COUNT_DESC = "Number of block in the block cache.";
211 String BLOCK_CACHE_SIZE = "blockCacheSize";
212 String BLOCK_CACHE_SIZE_DESC = "Size of the block cache.";
213 String BLOCK_CACHE_HIT_COUNT = "blockCacheHitCount";
214 String BLOCK_CACHE_HIT_COUNT_DESC = "Count of the hit on the block cache.";
215 String BLOCK_CACHE_MISS_COUNT = "blockCacheMissCount";
216 String BLOCK_COUNT_MISS_COUNT_DESC =
217 "Number of requests for a block that missed the block cache.";
218 String BLOCK_CACHE_EVICTION_COUNT = "blockCacheEvictionCount";
219 String BLOCK_CACHE_EVICTION_COUNT_DESC =
220 "Count of the number of blocks evicted from the block cache.";
221 String BLOCK_CACHE_HIT_PERCENT = "blockCountHitPercent";
222 String BLOCK_CACHE_HIT_PERCENT_DESC =
223 "Percent of block cache requests that are hits";
224 String BLOCK_CACHE_EXPRESS_HIT_PERCENT = "blockCacheExpressHitPercent";
225 String BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC =
226 "The percent of the time that requests with the cache turned on hit the cache.";
227 String BLOCK_CACHE_FAILED_INSERTION_COUNT = "blockCacheFailedInsertionCount";
228 String BLOCK_CACHE_FAILED_INSERTION_COUNT_DESC = "Number of times that a block cache " +
229 "insertion failed. Usually due to size restrictions.";
230 String RS_START_TIME_NAME = "regionServerStartTime";
231 String ZOOKEEPER_QUORUM_NAME = "zookeeperQuorum";
232 String SERVER_NAME_NAME = "serverName";
233 String CLUSTER_ID_NAME = "clusterId";
234 String RS_START_TIME_DESC = "RegionServer Start Time";
235 String ZOOKEEPER_QUORUM_DESC = "Zookeeper Quorum";
236 String SERVER_NAME_DESC = "Server Name";
237 String CLUSTER_ID_DESC = "Cluster Id";
238 String UPDATES_BLOCKED_TIME = "updatesBlockedTime";
239 String UPDATES_BLOCKED_DESC =
240 "Number of MS updates have been blocked so that the memstore can be flushed.";
241 String DELETE_KEY = "delete";
242 String GET_KEY = "get";
243 String INCREMENT_KEY = "increment";
244 String MUTATE_KEY = "mutate";
245 String APPEND_KEY = "append";
246 String REPLAY_KEY = "replay";
247 String SCAN_NEXT_KEY = "scanNext";
248 String SLOW_MUTATE_KEY = "slowPutCount";
249 String SLOW_GET_KEY = "slowGetCount";
250 String SLOW_DELETE_KEY = "slowDeleteCount";
251 String SLOW_INCREMENT_KEY = "slowIncrementCount";
252 String SLOW_APPEND_KEY = "slowAppendCount";
253 String SLOW_MUTATE_DESC =
254 "The number of Multis that took over 1000ms to complete";
255 String SLOW_DELETE_DESC =
256 "The number of Deletes that took over 1000ms to complete";
257 String SLOW_GET_DESC = "The number of Gets that took over 1000ms to complete";
258 String SLOW_INCREMENT_DESC =
259 "The number of Increments that took over 1000ms to complete";
260 String SLOW_APPEND_DESC =
261 "The number of Appends that took over 1000ms to complete";
262
263 String FLUSHED_CELLS = "flushedCellsCount";
264 String FLUSHED_CELLS_DESC = "The number of cells flushed to disk";
265 String FLUSHED_CELLS_SIZE = "flushedCellsSize";
266 String FLUSHED_CELLS_SIZE_DESC = "The total amount of data flushed to disk, in bytes";
267 String COMPACTED_CELLS = "compactedCellsCount";
268 String COMPACTED_CELLS_DESC = "The number of cells processed during minor compactions";
269 String COMPACTED_CELLS_SIZE = "compactedCellsSize";
270 String COMPACTED_CELLS_SIZE_DESC =
271 "The total amount of data processed during minor compactions, in bytes";
272 String MAJOR_COMPACTED_CELLS = "majorCompactedCellsCount";
273 String MAJOR_COMPACTED_CELLS_DESC =
274 "The number of cells processed during major compactions";
275 String MAJOR_COMPACTED_CELLS_SIZE = "majorCompactedCellsSize";
276 String MAJOR_COMPACTED_CELLS_SIZE_DESC =
277 "The total amount of data processed during major compactions, in bytes";
278
279 String BLOCKED_REQUESTS_COUNT = "blockedRequestCount";
280 String BLOCKED_REQUESTS_COUNT_DESC = "The number of blocked requests because of memstore size is "
281 + "larger than blockingMemStoreSize";
282
283 String SPLIT_KEY = "splitTime";
284 String SPLIT_REQUEST_KEY = "splitRequestCount";
285 String SPLIT_REQUEST_DESC = "Number of splits requested";
286 String SPLIT_SUCCESS_KEY = "splitSuccessCount";
287 String SPLIT_SUCCESS_DESC = "Number of successfully executed splits";
288 String FLUSH_KEY = "flushTime";
289 }