Skip to content
v2.278.0

JMXPrometheusExporterProperty Struct ​

The AWS::ApplicationInsights::Application JMXPrometheusExporter property type defines the JMXPrometheus Exporter configuration.

For more information, see the component configuration in the CloudWatch Application Insights documentation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const jMXPrometheusExporterProperty: applicationinsights.CfnApplication.JMXPrometheusExporterProperty = {
  hostPort: 'hostPort',
  jmxurl: 'jmxurl',
  prometheusPort: 'prometheusPort',
};
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_applicationinsights as applicationinsights

j_mx_prometheus_exporter_property = applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
    host_port="hostPort",
    jmxurl="jmxurl",
    prometheus_port="prometheusPort"
)
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.applicationinsights.*;

JMXPrometheusExporterProperty jMXPrometheusExporterProperty = JMXPrometheusExporterProperty.builder()
        .hostPort("hostPort")
        .jmxurl("jmxurl")
        .prometheusPort("prometheusPort")
        .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.ApplicationInsights;

var jMXPrometheusExporterProperty = new JMXPrometheusExporterProperty {
    HostPort = "hostPort",
    Jmxurl = "jmxurl",
    PrometheusPort = "prometheusPort"
};
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"

jMXPrometheusExporterProperty := &JMXPrometheusExporterProperty{
	HostPort: jsii.String("hostPort"),
	Jmxurl: jsii.String("jmxurl"),
	PrometheusPort: jsii.String("prometheusPort"),
}

Properties ​

hostPortoptionalstringhost_portoptionalstrhostPortoptionalStringHostPortoptionalstringHostPortoptional*string #
The host and port to connect to through remote JMX.

Only one of jmxURL and hostPort can be specified.

jmxurloptionalstringjmxurloptionalstrjmxurloptionalStringJmxurloptionalstringJmxurloptional*string #
The complete JMX URL to connect to.
prometheusPortoptionalstringprometheus_portoptionalstrprometheusPortoptionalStringPrometheusPortoptionalstringPrometheusPortoptional*string #
The target port to send Prometheus metrics to.

If not specified, the default port 9404 is used.