1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.hadoop.hbase.master;
18
19 import org.apache.hadoop.hbase.metrics.BaseSource;
20
21
22
23
24 public interface MetricsMasterQuotaSource extends BaseSource {
25
26 String METRICS_NAME = "Quotas";
27 String METRICS_CONTEXT = "master";
28 String METRICS_JMX_CONTEXT = "Master,sub=" + METRICS_NAME;
29 String METRICS_DESCRIPTION = "Metrics about HBase Quotas by the Master";
30
31 String NUM_SPACE_QUOTAS_NAME = "numSpaceQuotas";
32 String NUM_SPACE_QUOTAS_DESC = "Number of space quotas defined";
33 String NUM_TABLES_QUOTA_VIOLATIONS_NAME = "numTablesInQuotaViolation";
34 String NUM_TABLES_QUOTA_VIOLATIONS_DESC = "Number of tables violating space quotas";
35 String NUM_NS_QUOTA_VIOLATIONS_NAME = "numNamespaceInQuotaViolation";
36 String NUM_NS_QUOTA_VIOLATIONS_DESC = "Number of namespaces violating space quotas";
37 String NUM_REGION_SIZE_REPORTS_NAME = "numRegionSizeReports";
38 String NUM_REGION_SIZE_REPORTS_DESC = "Number of Region sizes reported";
39 String QUOTA_OBSERVER_CHORE_TIME_NAME = "quotaObserverChoreTime";
40 String QUOTA_OBSERVER_CHORE_TIME_DESC =
41 "Histogram for the time in millis for the QuotaObserverChore";
42 String TABLE_QUOTA_USAGE_NAME = "tableSpaceQuotaOverview";
43 String TABLE_QUOTA_USAGE_DESC = "A JSON summary of the usage of all tables with space quotas";
44 String NS_QUOTA_USAGE_NAME = "namespaceSpaceQuotaOverview";
45 String NS_QUOTA_USAGE_DESC = "A JSON summary of the usage of all namespaces with space quotas";
46
47
48
49
50
51
52 void updateNumSpaceQuotas(long numSpaceQuotas);
53
54
55
56
57
58
59
60 void updateNumTablesInSpaceQuotaViolation(long numTablesInViolation);
61
62
63
64
65
66
67
68 void updateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation);
69
70
71
72
73
74
75
76
77 void updateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports);
78
79
80
81
82
83
84
85 void incrementSpaceQuotaObserverChoreTime(long time);
86 }