Skip to content
v2.278.0

OpenMonitoringProperty Struct ​

JMX and Node monitoring for the MSK cluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';
const openMonitoringProperty: msk.CfnCluster.OpenMonitoringProperty = {
  prometheus: {
    jmxExporter: {
      enabledInBroker: false,
    },
    nodeExporter: {
      enabledInBroker: false,
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_msk as msk

open_monitoring_property = msk.CfnCluster.OpenMonitoringProperty(
    prometheus=msk.CfnCluster.PrometheusProperty(
        jmx_exporter=msk.CfnCluster.JmxExporterProperty(
            enabled_in_broker=False
        ),
        node_exporter=msk.CfnCluster.NodeExporterProperty(
            enabled_in_broker=False
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.msk.*;

OpenMonitoringProperty openMonitoringProperty = OpenMonitoringProperty.builder()
        .prometheus(PrometheusProperty.builder()
                .jmxExporter(JmxExporterProperty.builder()
                        .enabledInBroker(false)
                        .build())
                .nodeExporter(NodeExporterProperty.builder()
                        .enabledInBroker(false)
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MSK;

var openMonitoringProperty = new OpenMonitoringProperty {
    Prometheus = new PrometheusProperty {
        JmxExporter = new JmxExporterProperty {
            EnabledInBroker = false
        },
        NodeExporter = new NodeExporterProperty {
            EnabledInBroker = false
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

openMonitoringProperty := &OpenMonitoringProperty{
	Prometheus: &PrometheusProperty{
		JmxExporter: &JmxExporterProperty{
			EnabledInBroker: jsii.Boolean(false),
		},
		NodeExporter: &NodeExporterProperty{
			EnabledInBroker: jsii.Boolean(false),
		},
	},
}

Properties ​

prometheusIResolvable | CfnCluster.PrometheusPropertyprometheustyping.Union[IResolvable, PrometheusProperty]prometheusIResolvablePrometheusIResolvablePrometheusinterface{} required #
Prometheus exporter settings.