Java - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.