@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| Modifier and Type | Method and Description |
|---|---|
TaskManagerJobMetricGroup |
addJob(org.apache.flink.api.common.JobID jobId,
String jobName) |
protected QueryScopeInfo.TaskManagerQueryScopeInfo |
createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.
|
static TaskManagerMetricGroup |
createTaskManagerMetricGroup(MetricRegistry metricRegistry,
String hostName,
ResourceID resourceID) |
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".
|
TaskManagerJobMetricGroup |
getJobMetricsGroup(org.apache.flink.api.common.JobID jobId) |
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) |
protected Iterable<? extends ComponentMetricGroup> |
subComponents()
Gets all component metric groups that are contained in this component metric group.
|
String |
taskManagerId() |
closeaddGroup, addGroup, addMetric, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meterpublic static TaskManagerMetricGroup createTaskManagerMetricGroup(MetricRegistry metricRegistry, String hostName, ResourceID resourceID)
public String hostname()
public String taskManagerId()
protected QueryScopeInfo.TaskManagerQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupcreateQueryServiceMetricInfo in class AbstractMetricGroup<TaskManagerMetricGroup>filter - character filterpublic TaskManagerJobMetricGroup addJob(org.apache.flink.api.common.JobID jobId, String jobName)
@VisibleForTesting public TaskManagerJobMetricGroup getJobMetricsGroup(org.apache.flink.api.common.JobID jobId)
public void removeJobMetricsGroup(org.apache.flink.api.common.JobID jobId)
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–2023 The Apache Software Foundation. All rights reserved.