Custom CloudWatch Tomcat JVM Metrics

http://johnhunsley.blogspot.com.au/2016/03/custom-cloudwatch-tomcat-jvm-metrics.html

To set this up you will need to do the following:

  • Have an AWS account
  • Set up a IAM Role to be applied to a running instance which you want to monitor
  • Start EC2 instance hosting Tomcat which has outbound access to the internet
  • Download the AWS CLI package
  • Create a script to extract the JVM stats and publish to CloudWatch using the CLI
  • Set execution of the script in cron to publish the metrics at your desired frequency

Viet Luu has written 146 articles

Leave a Reply