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.wal;
20
21 import org.apache.hadoop.hbase.metrics.BaseSource;
22
23
24
25
26 public interface MetricsWALSource extends BaseSource {
27
28
29
30
31
32 String METRICS_NAME = "WAL";
33
34
35
36
37 String METRICS_CONTEXT = "regionserver";
38
39
40
41
42 String METRICS_DESCRIPTION = "Metrics about HBase RegionServer WAL";
43
44
45
46
47 String METRICS_JMX_CONTEXT = "RegionServer,sub=" + METRICS_NAME;
48
49
50 String APPEND_TIME = "appendTime";
51 String APPEND_TIME_DESC = "Time an append to the log took.";
52 String APPEND_COUNT = "appendCount";
53 String APPEND_COUNT_DESC = "Number of appends to the write ahead log.";
54 String APPEND_SIZE = "appendSize";
55 String APPEND_SIZE_DESC = "Size (in bytes) of the data appended to the WAL.";
56 String SLOW_APPEND_COUNT = "slowAppendCount";
57 String SLOW_APPEND_COUNT_DESC = "Number of appends that were slow.";
58 String SYNC_TIME = "syncTime";
59 String SYNC_TIME_DESC = "The time it took to sync the WAL to HDFS.";
60 String ROLL_REQUESTED = "rollRequest";
61 String ROLL_REQUESTED_DESC = "How many times a log roll has been requested total";
62 String LOW_REPLICA_ROLL_REQUESTED = "lowReplicaRollRequest";
63 String LOW_REPLICA_ROLL_REQUESTED_DESC =
64 "How many times a log roll was requested due to too few DN's in the write pipeline.";
65
66
67
68
69 void incrementAppendSize(long size);
70
71
72
73
74 void incrementAppendTime(long time);
75
76
77
78
79 void incrementAppendCount();
80
81
82
83
84 void incrementSlowAppendCount();
85
86
87
88
89 void incrementSyncTime(long time);
90
91 void incrementLogRollRequested();
92
93 void incrementLowReplicationLogRoll();
94
95 }