PrometheusProperty Struct
Prometheus settings for open monitoring.
| Source | |
|---|---|
| Type last changed |
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 prometheusProperty: msk.CfnCluster.PrometheusProperty = {
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
prometheus_property = 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.*;
PrometheusProperty prometheusProperty = PrometheusProperty.builder()
.jmxExporter(JmxExporterProperty.builder()
.enabledInBroker(false)
.build())
.nodeExporter(NodeExporterProperty.builder()
.enabledInBroker(false)
.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 prometheusProperty = 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"
prometheusProperty := &PrometheusProperty{
JmxExporter: &JmxExporterProperty{
EnabledInBroker: jsii.Boolean(false),
},
NodeExporter: &NodeExporterProperty{
EnabledInBroker: jsii.Boolean(false),
},
}
Properties
jmxExporteroptionalIResolvable | CfnCluster.JmxExporterPropertyjmx_exporteroptionaltyping.Union[IResolvable, JmxExporterProperty]jmxExporteroptionalIResolvableJmxExporteroptionalIResolvableJmxExporteroptionalinterface{} #Indicates whether you want to enable or disable the JMX Exporter.
nodeExporteroptionalIResolvable | CfnCluster.NodeExporterPropertynode_exporteroptionaltyping.Union[IResolvable, NodeExporterProperty]nodeExporteroptionalIResolvableNodeExporteroptionalIResolvableNodeExporteroptionalinterface{} #Indicates whether you want to enable or disable the Node Exporter.