@Internal public class TaskManagerMetricGroup extends ComponentMetricGroup<TaskManagerMetricGroup>
MetricGroup representing a TaskManager.
Contains extra logic for adding jobs with tasks, and removing jobs when they do not contain tasks any more
AbstractMetricGroup.ChildTypeLOG, parent, queryServiceScopeInfo, registry, variables| Constructor and Description |
|---|
TaskManagerMetricGroup(MetricRegistry registry,
String hostname,
String taskManagerId) |
| Modifier and Type | Method and Description |
|---|---|
TaskMetricGroup |
addTaskForJob(org.apache.flink.api.common.JobID jobId,
String jobName,
JobVertexID jobVertexId,
ExecutionAttemptID executionAttemptId,
String taskName,
int subtaskIndex,
int attemptNumber) |
protected QueryScopeInfo.TaskManagerQueryScopeInfo |
createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.
|
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".
|
String |
hostname() |
int |
numRegisteredJobMetricGroups() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this
AbstractMetricGroup and their associated values into the map. |
void |
removeJobMetricsGroup(org.apache.flink.api.common.JobID jobId,
TaskManagerJobMetricGroup group) |
protected Iterable<? extends ComponentMetricGroup> |
subComponents()
Gets all component metric groups that are contained in this component metric group.
|
String |
taskManagerId() |
closeaddGroup, addGroup, addGroup, addMetric, counter, counter, counter, counter, createChildGroup, createLogicalScope, gauge, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, histogram, isClosed, meter, meterpublic TaskManagerMetricGroup(MetricRegistry registry, String hostname, String taskManagerId)
public String hostname()
public String taskManagerId()
protected QueryScopeInfo.TaskManagerQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupcreateQueryServiceMetricInfo in class AbstractMetricGroup<TaskManagerMetricGroup>filter - character filterpublic TaskMetricGroup addTaskForJob(org.apache.flink.api.common.JobID jobId, String jobName, JobVertexID jobVertexId, ExecutionAttemptID executionAttemptId, String taskName, int subtaskIndex, int attemptNumber)
public void removeJobMetricsGroup(org.apache.flink.api.common.JobID jobId,
TaskManagerJobMetricGroup group)
public int numRegisteredJobMetricGroups()
protected void putVariables(Map<String,String> variables)
AbstractMetricGroupAbstractMetricGroup and their associated values into the map.putVariables in class AbstractMetricGroup<TaskManagerMetricGroup>variables - map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroupsubComponents in class ComponentMetricGroup<TaskManagerMetricGroup>protected String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupgetGroupName in class AbstractMetricGroup<TaskManagerMetricGroup>filter - character filter which is applied to the nameCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.