public static class MonitoringCenterConfig.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DC_ENV_VARIABLE_NAME |
static String |
NODE_GROUP_ENV_VARIABLE_NAME |
static String |
NODE_ID_ENV_VARIABLE_NAME |
static String |
NONE |
| Modifier and Type | Method and Description |
|---|---|
MonitoringCenterConfig.Builder |
appendTypeToHealthCheckNames(boolean appendTypeToHealthCheckNames)
Indicates whether "HealthCheck" should automatically be appended to health check names or not.
|
MonitoringCenterConfig.Builder |
applicationName(String applicationName)
Sets the application name to be used in the node-specific prefix for metrics.
|
MonitoringCenterConfig |
build() |
MonitoringCenterConfig.Builder |
datacenterName(String datacenterName)
Sets the data center name to be used in the node-specific prefix for metrics.
|
MonitoringCenterConfig.Builder |
enableSystemMetrics(boolean enableSystemMetrics)
Indicates whether the collection of system metrics should be enabled or not.
|
MonitoringCenterConfig.Builder |
enableTomcatMetrics(boolean enableTomcatMetrics)
Indicates whether Tomcat metrics should be collected or not.
|
MonitoringCenterConfig.Builder |
graphiteReporterConfig(GraphiteReporterConfig graphiteReporterConfig)
Sets the configuration for the GraphiteReporter.
|
MonitoringCenterConfig.Builder |
metricNamePostfixPolicy(MetricNamePostfixPolicy metricNamePostfixPolicy)
Sets the policy for appending metric types to metric names.
|
MonitoringCenterConfig.Builder |
nodeGroupName(String nodeGroupName)
Sets the node group name to be used in the node-specific prefix for metrics.
|
MonitoringCenterConfig.Builder |
nodeId(String nodeId)
Sets the node ID to be used in the node-specific prefix for metrics.
|
public static final String DC_ENV_VARIABLE_NAME
public static final String NODE_GROUP_ENV_VARIABLE_NAME
public static final String NODE_ID_ENV_VARIABLE_NAME
public static final String NONE
public MonitoringCenterConfig.Builder applicationName(String applicationName)
AppInfo. For instance, "bidder".
This is a required field.
Note that the passed in value will be sanitized using MetricNamingUtil.sanitize(String).applicationName - application name.IllegalArgumentException - if applicationName is blank.public MonitoringCenterConfig.Builder datacenterName(String datacenterName)
NodeInfo. For instance, "east".
DC_ENV_VARIABLE_NAME constant. In case the environment variable is not specified, NONE
will be used as the value.
Note that the passed in value will be sanitized using MetricNamingUtil.sanitize(String).datacenterName - data center name.public MonitoringCenterConfig.Builder nodeGroupName(String nodeGroupName)
NodeInfo. For instance, "lb3.p2e" or "staging".
NODE_GROUP_ENV_VARIABLE_NAME constant. In case the environment variable is not specified,
NONE will be used as the value.
Note that the passed in value will be sanitized using MetricNamingUtil.sanitize(String).nodeGroupName - node group name.public MonitoringCenterConfig.Builder nodeId(String nodeId)
NodeInfo. For instance, "58" or "node59".
NODE_ID_ENV_VARIABLE_NAME constant. In case the environment variable is not specified NONE
will be used as the value.
Note that the passed in value will be sanitized using MetricNamingUtil.sanitize(String).nodeId - ID of the node.public MonitoringCenterConfig.Builder metricNamePostfixPolicy(MetricNamePostfixPolicy metricNamePostfixPolicy)
MetricNamePostfixPolicy.ADD_COMPOSITE_TYPES, which will enforce metric types to be appended to names
of composite metrics (i.e., timers, histograms, and meters).
metricNamePostfixPolicy - the postfix policy to use for metric names.public MonitoringCenterConfig.Builder appendTypeToHealthCheckNames(boolean appendTypeToHealthCheckNames)
appendTypeToHealthCheckNames - whether type should be appended to health check names or not.public MonitoringCenterConfig.Builder enableSystemMetrics(boolean enableSystemMetrics)
enableSystemMetrics - whether the collection of system metrics should be enabled or not.public MonitoringCenterConfig.Builder enableTomcatMetrics(boolean enableTomcatMetrics)
enableTomcatMetrics - whether the collection of Tomcat metrics should be enabled or not.public MonitoringCenterConfig.Builder graphiteReporterConfig(GraphiteReporterConfig graphiteReporterConfig)
graphiteReporterConfig - a Graphite reporter configuration.public MonitoringCenterConfig build()
Copyright © 2016. All rights reserved.