1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.hadoop.hbase.ipc;
21
22 import org.apache.hadoop.hbase.metrics.BaseSource;
23
24 public interface MetricsHBaseServerSource extends BaseSource {
25 String AUTHORIZATION_SUCCESSES_NAME = "authorizationSuccesses";
26 String AUTHORIZATION_SUCCESSES_DESC =
27 "Number of authorization successes.";
28 String AUTHORIZATION_FAILURES_NAME = "authorizationFailures";
29 String AUTHORIZATION_FAILURES_DESC =
30 "Number of authorization failures.";
31 String AUTHENTICATION_SUCCESSES_NAME = "authenticationSuccesses";
32 String AUTHENTICATION_SUCCESSES_DESC =
33 "Number of authentication successes.";
34 String AUTHENTICATION_FAILURES_NAME = "authenticationFailures";
35 String AUTHENTICATION_FAILURES_DESC =
36 "Number of authentication failures.";
37 String SENT_BYTES_NAME = "sentBytes";
38 String SENT_BYTES_DESC = "Number of bytes sent.";
39 String RECEIVED_BYTES_NAME = "receivedBytes";
40 String RECEIVED_BYTES_DESC = "Number of bytes received.";
41 String REQUEST_SIZE_NAME = "requestSize";
42 String REQUEST_SIZE_DESC = "Request size in bytes.";
43 String RESPONSE_SIZE_NAME = "responseSize";
44 String RESPONSE_SIZE_DESC = "Response size in bytes.";
45 String QUEUE_CALL_TIME_NAME = "queueCallTime";
46 String QUEUE_CALL_TIME_DESC = "Queue Call Time.";
47 String PROCESS_CALL_TIME_NAME = "processCallTime";
48 String PROCESS_CALL_TIME_DESC = "Processing call time.";
49 String TOTAL_CALL_TIME_NAME = "totalCallTime";
50 String TOTAL_CALL_TIME_DESC = "Total call time, including both queued and processing time.";
51 String QUEUE_SIZE_NAME = "queueSize";
52 String QUEUE_SIZE_DESC = "Number of bytes in the call queues.";
53 String GENERAL_QUEUE_NAME = "numCallsInGeneralQueue";
54 String GENERAL_QUEUE_DESC = "Number of calls in the general call queue.";
55 String PRIORITY_QUEUE_NAME = "numCallsInPriorityQueue";
56 String REPLICATION_QUEUE_NAME = "numCallsInReplicationQueue";
57 String REPLICATION_QUEUE_DESC =
58 "Number of calls in the replication call queue.";
59 String PRIORITY_QUEUE_DESC = "Number of calls in the priority call queue.";
60 String NUM_OPEN_CONNECTIONS_NAME = "numOpenConnections";
61 String NUM_OPEN_CONNECTIONS_DESC = "Number of open connections.";
62 String NUM_ACTIVE_HANDLER_NAME = "numActiveHandler";
63 String NUM_ACTIVE_HANDLER_DESC = "Number of active rpc handlers.";
64 String NUM_GENERAL_CALLS_DROPPED_NAME = "numGeneralCallsDropped";
65 String NUM_GENERAL_CALLS_DROPPED_DESC = "Total number of calls in general queue which " +
66 "were dropped by CoDel RPC executor";
67 String NUM_LIFO_MODE_SWITCHES_NAME = "numLifoModeSwitches";
68 String NUM_LIFO_MODE_SWITCHES_DESC = "Total number of calls in general queue which " +
69 "were served from the tail of the queue";
70
71 String EXCEPTIONS_NAME="exceptions";
72 String EXCEPTIONS_DESC="Exceptions caused by requests";
73 String EXCEPTIONS_TYPE_DESC="Number of requests that resulted in the specified type of Exception";
74 String EXCEPTIONS_OOO_NAME="exceptions.OutOfOrderScannerNextException";
75 String EXCEPTIONS_BUSY_NAME="exceptions.RegionTooBusyException";
76 String EXCEPTIONS_UNKNOWN_NAME="exceptions.UnknownScannerException";
77 String EXCEPTIONS_SCANNER_RESET_NAME="exceptions.ScannerResetException";
78 String EXCEPTIONS_SANITY_NAME="exceptions.FailedSanityCheckException";
79 String EXCEPTIONS_MOVED_NAME="exceptions.RegionMovedException";
80 String EXCEPTIONS_NSRE_NAME="exceptions.NotServingRegionException";
81
82 void authorizationSuccess();
83
84 void authorizationFailure();
85
86 void authenticationSuccess();
87
88 void authenticationFailure();
89
90 void exception();
91
92
93
94
95 void outOfOrderException();
96 void failedSanityException();
97 void movedRegionException();
98 void notServingRegionException();
99 void unknownScannerException();
100 void scannerResetException();
101 void tooBusyException();
102
103 void sentBytes(long count);
104
105 void receivedBytes(int count);
106
107 void sentResponse(long count);
108
109 void receivedRequest(long count);
110
111 void dequeuedCall(int qTime);
112
113 void processedCall(int processingTime);
114
115 void queuedAndProcessedCall(int totalTime);
116 }