@Internal public class TaskMetricGroup extends ComponentMetricGroup<TaskManagerJobMetricGroup>
MetricGroup representing a Flink runtime Task.
Contains extra logic for adding operators.
AbstractMetricGroup.ChildType| Modifier and Type | Field and Description |
|---|---|
protected int |
subtaskIndex |
protected JobVertexID |
vertexId |
LOG, parent, queryServiceScopeInfo, registry, variables| Modifier and Type | Method and Description |
|---|---|
int |
attemptNumber() |
void |
close()
Closes the component group by removing and closing all metrics and subgroups (inherited from
AbstractMetricGroup), plus closing and removing all dedicated component subgroups. |
protected QueryScopeInfo.TaskQueryScopeInfo |
createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.
|
ExecutionAttemptID |
executionId() |
protected String |
getGroupName(org.apache.flink.metrics.CharacterFilter filter)
Returns the name for this group, meaning what kind of entity it represents, for example
"taskmanager".
|
TaskIOMetricGroup |
getIOMetricGroup()
Returns the TaskIOMetricGroup for this task.
|
InternalOperatorMetricGroup |
getOrAddOperator(OperatorID operatorID,
String operatorName) |
InternalOperatorMetricGroup |
getOrAddOperator(String operatorName) |
TaskManagerJobMetricGroup |
parent() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this
AbstractMetricGroup and their associated values
into the map. |
protected Iterable<? extends ComponentMetricGroup> |
subComponents()
Gets all component metric groups that are contained in this component metric group.
|
int |
subtaskIndex() |
String |
taskName() |
org.apache.flink.util.AbstractID |
vertexId() |
addGroup, addGroup, addMetric, addSpan, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meterprotected final JobVertexID vertexId
protected final int subtaskIndex
public final TaskManagerJobMetricGroup parent()
public ExecutionAttemptID executionId()
@Nullable public org.apache.flink.util.AbstractID vertexId()
public int subtaskIndex()
public int attemptNumber()
public TaskIOMetricGroup getIOMetricGroup()
protected QueryScopeInfo.TaskQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupcreateQueryServiceMetricInfo in class AbstractMetricGroup<TaskManagerJobMetricGroup>filter - character filterpublic InternalOperatorMetricGroup getOrAddOperator(String operatorName)
public InternalOperatorMetricGroup getOrAddOperator(OperatorID operatorID, String operatorName)
public void close()
ComponentMetricGroupAbstractMetricGroup), plus closing and removing all dedicated component subgroups.close in class ComponentMetricGroup<TaskManagerJobMetricGroup>protected void putVariables(Map<String,String> variables)
AbstractMetricGroupAbstractMetricGroup and their associated values
into the map.putVariables in class AbstractMetricGroup<TaskManagerJobMetricGroup>variables - map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroupsubComponents in class ComponentMetricGroup<TaskManagerJobMetricGroup>protected String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupgetGroupName in class AbstractMetricGroup<TaskManagerJobMetricGroup>filter - character filter which is applied to the nameCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.