# JMXPrometheusExporterProperty

Struct · External

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

For more information, see the [component configuration](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/component-config-sections.html#component-configuration-prometheus) in the CloudWatch Application Insights documentation.

- 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_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const jMXPrometheusExporterProperty: applicationinsights.CfnApplication.JMXPrometheusExporterProperty = {
  hostPort: 'hostPort',
  jmxurl: 'jmxurl',
  prometheusPort: 'prometheusPort',
};
```

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_applicationinsights as applicationinsights

j_mx_prometheus_exporter_property = applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
    host_port="hostPort",
    jmxurl="jmxurl",
    prometheus_port="prometheusPort"
)
```

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.applicationinsights.*;

JMXPrometheusExporterProperty jMXPrometheusExporterProperty = JMXPrometheusExporterProperty.builder()
        .hostPort("hostPort")
        .jmxurl("jmxurl")
        .prometheusPort("prometheusPort")
        .build();
```

C#:

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

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

- `hostPort`: string — The host and port to connect to through remote JMX.

  Only one of `jmxURL` and `hostPort` can be specified.

- `jmxurl`: string — The complete JMX URL to connect to.

- `prometheusPort`: string — The target port to send Prometheus metrics to.

  If not specified, the default port `9404` is used.
