# OpenMonitoringProperty

JMX and Node monitoring for the MSK cluster.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
        }
    }
};
```

Golang:

```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

- `prometheus`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.PrometheusProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_msk.CfnCluster.PrometheusProperty.html) (required) — Prometheus exporter settings.
