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 void incrSlowPut();
94
95
96
97
98 void incrSlowDelete();
99
100
101
102
103 void incrSlowGet();
104
105
106
107
108 void incrSlowIncrement();
109
110
111
112
113 void incrSlowAppend();
114
115
116 String REGION_COUNT = "regionCount";
117 String REGION_COUNT_DESC = "Number of regions";
118 String STORE_COUNT = "storeCount";
119 String STORE_COUNT_DESC = "Number of Stores";
120 String HLOGFILE_COUNT = "hlogFileCount";
121 String HLOGFILE_COUNT_DESC = "Number of HLog Files";
122 String HLOGFILE_SIZE = "hlogFileSize";
123 String HLOGFILE_SIZE_DESC = "Size of all HLog Files";
124 String STOREFILE_COUNT = "storeFileCount";
125 String STOREFILE_COUNT_DESC = "Number of Store Files";
126 String MEMSTORE_SIZE = "memStoreSize";
127 String MEMSTORE_SIZE_DESC = "Size of the memstore";
128 String STOREFILE_SIZE = "storeFileSize";
129 String STOREFILE_SIZE_DESC = "Size of storefiles being served.";
130 String TOTAL_REQUEST_COUNT = "totalRequestCount";
131 String TOTAL_REQUEST_COUNT_DESC =
132 "Total number of requests this RegionServer has answered.";
133 String READ_REQUEST_COUNT = "readRequestCount";
134 String READ_REQUEST_COUNT_DESC =
135 "Number of read requests this region server has answered.";
136 String WRITE_REQUEST_COUNT = "writeRequestCount";
137 String WRITE_REQUEST_COUNT_DESC =
138 "Number of mutation requests this region server has answered.";
139 String CHECK_MUTATE_FAILED_COUNT = "checkMutateFailedCount";
140 String CHECK_MUTATE_FAILED_COUNT_DESC =
141 "Number of Check and Mutate calls that failed the checks.";
142 String CHECK_MUTATE_PASSED_COUNT = "checkMutatePassedCount";
143 String CHECK_MUTATE_PASSED_COUNT_DESC =
144 "Number of Check and Mutate calls that passed the checks.";
145 String STOREFILE_INDEX_SIZE = "storeFileIndexSize";
146 String STOREFILE_INDEX_SIZE_DESC = "Size of indexes in storefiles on disk.";
147 String STATIC_INDEX_SIZE = "staticIndexSize";
148 String STATIC_INDEX_SIZE_DESC = "Uncompressed size of the static indexes.";
149 String STATIC_BLOOM_SIZE = "staticBloomSize";
150 String STATIC_BLOOM_SIZE_DESC =
151 "Uncompressed size of the static bloom filters.";
152 String NUMBER_OF_MUTATIONS_WITHOUT_WAL = "mutationsWithoutWALCount";
153 String NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC =
154 "Number of mutations that have been sent by clients with the write ahead logging turned off.";
155 String DATA_SIZE_WITHOUT_WAL = "mutationsWithoutWALSize";
156 String DATA_SIZE_WITHOUT_WAL_DESC =
157 "Size of data that has been sent by clients with the write ahead logging turned off.";
158 String PERCENT_FILES_LOCAL = "percentFilesLocal";
159 String PERCENT_FILES_LOCAL_DESC =
160 "The percent of HFiles that are stored on the local hdfs data node.";
161 String COMPACTION_QUEUE_LENGTH = "compactionQueueLength";
162 String LARGE_COMPACTION_QUEUE_LENGTH = "largeCompactionQueueLength";
163 String SMALL_COMPACTION_QUEUE_LENGTH = "smallCompactionQueueLength";
164 String COMPACTION_QUEUE_LENGTH_DESC = "Length of the queue for compactions.";
165 String FLUSH_QUEUE_LENGTH = "flushQueueLength";
166 String FLUSH_QUEUE_LENGTH_DESC = "Length of the queue for region flushes";
167 String BLOCK_CACHE_FREE_SIZE = "blockCacheFreeSize";
168 String BLOCK_CACHE_FREE_DESC =
169 "Size of the block cache that is not occupied.";
170 String BLOCK_CACHE_COUNT = "blockCacheCount";
171 String BLOCK_CACHE_COUNT_DESC = "Number of block in the block cache.";
172 String BLOCK_CACHE_SIZE = "blockCacheSize";
173 String BLOCK_CACHE_SIZE_DESC = "Size of the block cache.";
174 String BLOCK_CACHE_HIT_COUNT = "blockCacheHitCount";
175 String BLOCK_CACHE_HIT_COUNT_DESC = "Count of the hit on the block cache.";
176 String BLOCK_CACHE_MISS_COUNT = "blockCacheMissCount";
177 String BLOCK_COUNT_MISS_COUNT_DESC =
178 "Number of requests for a block that missed the block cache.";
179 String BLOCK_CACHE_EVICTION_COUNT = "blockCacheEvictionCount";
180 String BLOCK_CACHE_EVICTION_COUNT_DESC =
181 "Count of the number of blocks evicted from the block cache.";
182 String BLOCK_CACHE_HIT_PERCENT = "blockCountHitPercent";
183 String BLOCK_CACHE_HIT_PERCENT_DESC =
184 "Percent of block cache requests that are hits";
185 String BLOCK_CACHE_EXPRESS_HIT_PERCENT = "blockCacheExpressHitPercent";
186 String BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC =
187 "The percent of the time that requests with the cache turned on hit the cache.";
188 String RS_START_TIME_NAME = "regionServerStartTime";
189 String ZOOKEEPER_QUORUM_NAME = "zookeeperQuorum";
190 String SERVER_NAME_NAME = "serverName";
191 String CLUSTER_ID_NAME = "clusterId";
192 String RS_START_TIME_DESC = "RegionServer Start Time";
193 String ZOOKEEPER_QUORUM_DESC = "Zookeeper Quorum";
194 String SERVER_NAME_DESC = "Server Name";
195 String CLUSTER_ID_DESC = "Cluster Id";
196 String UPDATES_BLOCKED_TIME = "updatesBlockedTime";
197 String UPDATES_BLOCKED_DESC =
198 "Number of MS updates have been blocked so that the memstore can be flushed.";
199 String DELETE_KEY = "delete";
200 String GET_KEY = "get";
201 String INCREMENT_KEY = "increment";
202 String MUTATE_KEY = "mutate";
203 String APPEND_KEY = "append";
204 String REPLAY_KEY = "replay";
205 String SCAN_NEXT_KEY = "scanNext";
206 String SLOW_MUTATE_KEY = "slowPutCount";
207 String SLOW_GET_KEY = "slowGetCount";
208 String SLOW_DELETE_KEY = "slowDeleteCount";
209 String SLOW_INCREMENT_KEY = "slowIncrementCount";
210 String SLOW_APPEND_KEY = "slowAppendCount";
211 String SLOW_MUTATE_DESC =
212 "The number of Multis that took over 1000ms to complete";
213 String SLOW_DELETE_DESC =
214 "The number of Deletes that took over 1000ms to complete";
215 String SLOW_GET_DESC = "The number of Gets that took over 1000ms to complete";
216 String SLOW_INCREMENT_DESC =
217 "The number of Increments that took over 1000ms to complete";
218 String SLOW_APPEND_DESC =
219 "The number of Appends that took over 1000ms to complete";
220
221
222 }