public class CollectdReporterFactory
extends io.dropwizard.metrics.BaseReporterFactory
| Name | Default | Description |
host |
(none) | The metrics are sent to this host. |
port |
(none) | The port on host where collectd is listening. |
securityLevel |
NONE |
Possible values are defined in class
com.codahale.metrics.collectd.SecurityLevel:
|
username |
(none) | Required when using security level SIGN or ENCRYPT. |
password |
(none) | Shared secret for signing/encrypting packets. Required when using security level SIGN or ENCRYPT. |
localHost |
InetAddress.getLocalHost().getHostName() |
| Constructor and Description |
|---|
CollectdReporterFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.codahale.metrics.ScheduledReporter |
build(com.codahale.metrics.MetricRegistry registry) |
String |
getHost() |
String |
getLocalHost() |
String |
getPassword() |
int |
getPort() |
com.codahale.metrics.collectd.SecurityLevel |
getSecurityLevel() |
String |
getUsername() |
void |
setHost(String host) |
void |
setLocalHost(String localHost) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setSecurityLevel(com.codahale.metrics.collectd.SecurityLevel level) |
void |
setUsername(String username) |
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatchingpublic String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getLocalHost()
public void setLocalHost(String localHost)
public com.codahale.metrics.collectd.SecurityLevel getSecurityLevel()
public void setSecurityLevel(com.codahale.metrics.collectd.SecurityLevel level)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
Copyright © 2020. All rights reserved.