@ThreadSafe public class CapacityGoalMetrics extends Object
CapacityGoal.name()
:
NUM_HOT_PARTITIONS_METRIC_NAME
-
the number of partitions that utilize more than
KafkaCruiseControlConfig.HOT_PARTITION_CAPACITY_UTILIZATION_THRESHOLD_CONFIG
percentage of the capacity of a single broker, for the respective resource.
EFFECTIVE_MAX_CAPACITY_METRIC_NAME
-
the effective max-capacity that the hard goal will allow any single broker to have,
in the associated unit of the respective Resource
it applies to.
Assumes that every broker has homogeneous capacity.
Constructor and Description |
---|
CapacityGoalMetrics(String goalName,
DataBalancerMetricsRegistry metricsRegistry,
Class<?> metricClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
registerMetrics(Class<?> metricClass) |
void |
update(CapacityStatsSnapshot statsSnapshot) |
public CapacityGoalMetrics(String goalName, DataBalancerMetricsRegistry metricsRegistry, Class<?> metricClass)
public void update(CapacityStatsSnapshot statsSnapshot)
protected void registerMetrics(Class<?> metricClass)