public class AbstractRiemannReporterConfig extends AbstractHostPortReporterConfig
Modifier and Type | Field and Description |
---|---|
protected String |
localHost |
protected String |
prefix |
protected String |
separator |
protected List<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 |
---|---|
List<HostPort> |
getFullHostList() |
String |
getLocalHost() |
String |
getPrefix() |
String |
getSeparator() |
List<String> |
getTags() |
void |
setLocalHost(String localHost) |
void |
setPrefix(String prefix)
Sets the prefix to be prepended to all metric names.
|
void |
setSeparator(String separator) |
void |
setTags(List<String> tags) |
getHostListAndStringList, getHosts, getHostsString, getResolvedPrefix, parseHostString, setHosts, setHostsString
getDurationunit, getPeriod, getPredicate, getRateunit, getRealDurationunit, getRealRateunit, getRealTimeunit, getTimeunit, isClassAvailable, setDurationunit, setPeriod, setPredicate, setRateunit, setTimeunit
protected String localHost
protected String prefix
protected String separator
public String getPrefix()
public void setPrefix(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 String getLocalHost()
public void setLocalHost(String localHost)
public String getSeparator()
public void setSeparator(String separator)
public List<HostPort> getFullHostList()
getFullHostList
in class AbstractHostPortReporterConfig
Copyright © 2016. All rights reserved.