public static final class MonitoringConfiguration.Builder
extends java.lang.Object
MonitoringConfiguration
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MonitoringConfiguration |
build()
Builds the configured instance.
|
MonitoringConfiguration.Builder |
clusterMonitoringLevel(ClusterMonitoringLevel clusterMonitoringLevel)
Sets the value of
MonitoringConfiguration.getClusterMonitoringLevel() |
MonitoringConfiguration.Builder |
enablePrometheusJmxExporter(java.lang.Boolean enablePrometheusJmxExporter)
Sets the value of
MonitoringConfiguration.getEnablePrometheusJmxExporter() |
MonitoringConfiguration.Builder |
enablePrometheusNodeExporter(java.lang.Boolean enablePrometheusNodeExporter)
Sets the value of
MonitoringConfiguration.getEnablePrometheusNodeExporter() |
public MonitoringConfiguration.Builder clusterMonitoringLevel(ClusterMonitoringLevel clusterMonitoringLevel)
MonitoringConfiguration.getClusterMonitoringLevel()
clusterMonitoringLevel
- Specifies the level of monitoring for the MSK cluster.this
public MonitoringConfiguration.Builder enablePrometheusJmxExporter(java.lang.Boolean enablePrometheusJmxExporter)
MonitoringConfiguration.getEnablePrometheusJmxExporter()
enablePrometheusJmxExporter
- Indicates whether you want to enable or disable the JMX Exporter.this
public MonitoringConfiguration.Builder enablePrometheusNodeExporter(java.lang.Boolean enablePrometheusNodeExporter)
MonitoringConfiguration.getEnablePrometheusNodeExporter()
enablePrometheusNodeExporter
- Indicates whether you want to enable or disable the Prometheus Node Exporter.
You can use the Prometheus Node Exporter to get CPU and disk metrics for the broker nodes.this
public MonitoringConfiguration build()
MonitoringConfiguration
java.lang.NullPointerException
- if any required attribute was not provided