public class AbstractRiemannReporterConfig extends AbstractHostPortReporterConfig
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
localHost |
protected java.lang.String |
prefix |
protected java.lang.String |
separator |
protected java.util.List<java.lang.String> |
tags |
MACRO_HOST_ADDRESS, MACRO_HOST_FQDN, MACRO_HOST_NAME, MACRO_HOST_NAME_SHORT
durationunit, period, predicate, rateunit, timeunit
Constructor and Description |
---|
AbstractRiemannReporterConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.List<HostPort> |
getFullHostList() |
java.lang.String |
getLocalHost() |
java.lang.String |
getPrefix() |
java.lang.String |
getSeparator() |
java.util.List<java.lang.String> |
getTags() |
void |
setLocalHost(java.lang.String localHost) |
void |
setPrefix(java.lang.String prefix)
Sets the prefix to be prepended to all metric names.
|
void |
setSeparator(java.lang.String separator) |
void |
setTags(java.util.List<java.lang.String> tags) |
getHostListAndStringList, getHosts, getHostsString, getResolvedPrefix, parseHostString, setHosts, setHostsString
getDurationunit, getPeriod, getPredicate, getRateunit, getRealDurationunit, getRealRateunit, getRealTimeunit, getTimeunit, isClassAvailable, setDurationunit, setPeriod, setPredicate, setRateunit, setTimeunit
protected java.lang.String localHost
protected java.lang.String prefix
protected java.lang.String separator
protected java.util.List<java.lang.String> tags
public java.util.List<java.lang.String> getTags()
public void setTags(java.util.List<java.lang.String> tags)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
AbstractHostPortReporterConfig
Sets the prefix to be prepended to all metric names. The prefix may contain the variable references in the following format: ${macro_name}.
The following macros are supported:
AbstractHostPortReporterConfig.MACRO_HOST_ADDRESS
InetAddress.getHostAddress()
AbstractHostPortReporterConfig.MACRO_HOST_NAME
InetAddress.getHostName()
AbstractHostPortReporterConfig.MACRO_HOST_NAME_SHORT
InetAddress.getHostName()
up to first dotAbstractHostPortReporterConfig.MACRO_HOST_FQDN
InetAddress.getCanonicalHostName()
All substituted values are made metric-safe
setPrefix
in class AbstractHostPortReporterConfig
prefix
- prefix valuepublic java.lang.String getLocalHost()
public void setLocalHost(java.lang.String localHost)
public java.lang.String getSeparator()
public void setSeparator(java.lang.String separator)
public java.util.List<HostPort> getFullHostList()
getFullHostList
in class AbstractHostPortReporterConfig
Copyright © 2017. All rights reserved.