Package com.nimbusds.common.config
Class MonitorConfiguration.Graphite
- java.lang.Object
-
- com.nimbusds.common.config.MonitorConfiguration.Graphite
-
- All Implemented Interfaces:
LoggableConfiguration
- Enclosing class:
- MonitorConfiguration
public static final class MonitorConfiguration.Graphite extends Object implements LoggableConfiguration
Graphite reporting configuration.
-
-
Field Summary
Fields Modifier and Type Field Description int
batchSize
Controls batching (pickling) of metrics to the Carbon server, zero if disabled.TimeUnit
durationsTimeUnit
The durations time unit.boolean
enable
Enables / disables reporting.WildCardMetricFilter
filter
The metrics filter (white list with wild card support).String
host
The name / IP address of the Carbon server host.int
port
The port of the Carbon server.String
prefix
Prefix for the metrics that are sent to the Carbon server.TimeUnit
ratesTimeUnit
The rates time unit.int
reportInterval
The report interval, in seconds.-
Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
-
Constructor Summary
Constructors Constructor Description Graphite(Properties props)
Creates a new Graphite reporting configuration.
-
-
-
Field Detail
-
enable
public final boolean enable
Enables / disables reporting.
-
port
public final int port
The port of the Carbon server.
-
reportInterval
public final int reportInterval
The report interval, in seconds.
-
batchSize
public final int batchSize
Controls batching (pickling) of metrics to the Carbon server, zero if disabled.
-
prefix
public final String prefix
Prefix for the metrics that are sent to the Carbon server. May be used to send a password or other credential to the server.
-
ratesTimeUnit
public final TimeUnit ratesTimeUnit
The rates time unit.
-
durationsTimeUnit
public final TimeUnit durationsTimeUnit
The durations time unit.
-
filter
public final WildCardMetricFilter filter
The metrics filter (white list with wild card support).
-
-
Constructor Detail
-
Graphite
public Graphite(Properties props) throws com.thetransactioncompany.util.PropertyParseException
Creates a new Graphite reporting configuration.- Parameters:
props
- The properties. Must not benull
.- Throws:
com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.
-
-
Method Detail
-
log
public void log()
Description copied from interface:LoggableConfiguration
Logs the configuration properties at INFO level.- Specified by:
log
in interfaceLoggableConfiguration
-
-