Java - Amazon CloudWatch
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Java

The following example shows a component configuration in JSON format for Java.

{ "alarmMetrics": [ { "alarmMetricName": "java_lang_threading_threadcount", "monitor": true }, { "alarmMetricName": "java_lang_memory_heapmemoryusage_used", "monitor": true }, { "alarmMetricName": "java_lang_memory_heapmemoryusage_committed", "monitor": true }], "logs": [ ], "JMXPrometheusExporter": { "hostPort": "8686", "prometheusPort": "9404" } }
Note

Application Insights does not support configuring authentication for Prometheus JMX exporter. For information about how to set up authentication, see the Prometheus JMX exporter example configuration.