P
- parentMetricGroup to AbstractMetricGroup
public class FrontMetricGroup<P extends AbstractMetricGroup<?>> extends ProxyMetricGroup<P> implements LogicalScopeProvider
MetricGroup.getMetricIdentifier(String)
or MetricGroup.getMetricIdentifier(String, CharacterFilter)
. This allows
us to use reporter-specific delimiters, without requiring any action by the reporter.parentMetricGroup
Constructor and Description |
---|
FrontMetricGroup(ReporterScopedSettings settings,
P reference) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllVariables()
Returns a map of all variables and their associated value, for example
{"<host>"="host-7", "<tm_id>"="taskmanager-2"} . |
String |
getLogicalScope(CharacterFilter filter)
Deprecated.
work against the LogicalScopeProvider interface instead.
|
String |
getLogicalScope(CharacterFilter filter,
char delimiter)
Deprecated.
work against the LogicalScopeProvider interface instead.
|
String |
getMetricIdentifier(String metricName)
Returns the fully qualified metric name, for example
"host-7.taskmanager-2.window_word_count.my-mapper.metricName" . |
String |
getMetricIdentifier(String metricName,
CharacterFilter filter)
Returns the fully qualified metric name, for example
"host-7.taskmanager-2.window_word_count.my-mapper.metricName" . |
MetricGroup |
getWrappedMetricGroup()
Returns the underlying metric group.
|
addGroup, addGroup, counter, counter, gauge, getScopeComponents, histogram, meter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
castFrom
public FrontMetricGroup(ReporterScopedSettings settings, P reference)
public String getMetricIdentifier(String metricName)
MetricGroup
"host-7.taskmanager-2.window_word_count.my-mapper.metricName"
.getMetricIdentifier
in interface MetricGroup
getMetricIdentifier
in class ProxyMetricGroup<P extends AbstractMetricGroup<?>>
metricName
- metric namepublic String getMetricIdentifier(String metricName, CharacterFilter filter)
MetricGroup
"host-7.taskmanager-2.window_word_count.my-mapper.metricName"
.getMetricIdentifier
in interface MetricGroup
getMetricIdentifier
in class ProxyMetricGroup<P extends AbstractMetricGroup<?>>
metricName
- metric namefilter
- character filter which is applied to the scope components if not null.public MetricGroup getWrappedMetricGroup()
LogicalScopeProvider
getWrappedMetricGroup
in interface LogicalScopeProvider
public Map<String,String> getAllVariables()
MetricGroup
{"<host>"="host-7", "<tm_id>"="taskmanager-2"}
.getAllVariables
in interface MetricGroup
getAllVariables
in class ProxyMetricGroup<P extends AbstractMetricGroup<?>>
@Deprecated public String getLogicalScope(CharacterFilter filter)
LogicalScopeProvider
"taskmanager.job.task"
,
with the given filter being applied to all scope components.getLogicalScope
in interface LogicalScopeProvider
filter
- filter to apply to all scope components@Deprecated public String getLogicalScope(CharacterFilter filter, char delimiter)
LogicalScopeProvider
"taskmanager.job.task"
,
with the given filter being applied to all scope components and the given delimiter being
used to concatenate scope components.getLogicalScope
in interface LogicalScopeProvider
filter
- filter to apply to all scope componentsdelimiter
- delimiter to use for concatenating scope componentsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.