public abstract class AbstractHostPortReporterConfig extends AbstractMetricReporterConfig
Modifier and Type | Field and Description |
---|---|
static String |
MACRO_HOST_ADDRESS |
static String |
MACRO_HOST_FQDN |
static String |
MACRO_HOST_NAME |
static String |
MACRO_HOST_NAME_SHORT |
durationunit, period, predicate, rateunit, timeunit
Constructor and Description |
---|
AbstractHostPortReporterConfig() |
Modifier and Type | Method and Description |
---|---|
abstract List<HostPort> |
getFullHostList() |
List<HostPort> |
getHostListAndStringList() |
List<HostPort> |
getHosts() |
String |
getHostsString() |
String |
getResolvedPrefix() |
List<HostPort> |
parseHostString() |
void |
setHosts(List<HostPort> hosts) |
void |
setHostsString(String hostsString) |
void |
setPrefix(String prefix)
Sets the prefix to be prepended to all metric names.
|
getDurationunit, getPeriod, getPredicate, getRateunit, getRealDurationunit, getRealRateunit, getRealTimeunit, getTimeunit, isClassAvailable, setDurationunit, setPeriod, setPredicate, setRateunit, setTimeunit
public static final String MACRO_HOST_NAME
public static final String MACRO_HOST_ADDRESS
public static final String MACRO_HOST_FQDN
public static final String MACRO_HOST_NAME_SHORT
public String getHostsString()
public void setHostsString(String hostsString)
public String getResolvedPrefix()
public void setPrefix(String prefix)
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:
MACRO_HOST_ADDRESS
InetAddress.getHostAddress()
MACRO_HOST_NAME
InetAddress.getHostName()
MACRO_HOST_NAME_SHORT
InetAddress.getHostName()
up to first dotMACRO_HOST_FQDN
InetAddress.getCanonicalHostName()
All substituted values are made metric-safe
prefix
- prefix valueCopyright © 2017. All rights reserved.