P- The type of the parent MetricGroup.
@Internal public abstract class ComponentMetricGroup<P extends AbstractMetricGroup<?>> extends AbstractMetricGroup<P>
MetricGroupfor system components (e.g., TaskManager, Job, Task, Operator).
Usually, the scope of metrics is simply the hierarchy of the containing groups. For example
"MyMetric" in group
"B" nested in group
"A" would have a fully
scoped name of
"A.B" being the Metric's scope.
Component groups, however, have configurable scopes. This allow users to include or exclude certain identifiers from the scope. The scope for metrics belonging to the "Task" group could for example include the task attempt number (more fine grained identification), or exclude it (for continuity of the namespace across failure and recovery).
|Constructor and Description|
Creates a new ComponentMetricGroup.
|Modifier and Type||Method and Description|
Closes the component group by removing and closing all metrics and subgroups (inherited from
Gets all component metric groups that are contained in this component metric group.
addGroup, addGroup, addMetric, counter, counter, createChildGroup, createLogicalScope, createQueryServiceMetricInfo, gauge, getAllVariables, getAllVariables, getGroupName, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter, putVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void close()
AbstractMetricGroup), plus closing and removing all dedicated component subgroups.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.