Home

Awesome

Export JMeter test results to CloudWatch Logs.

Code from the following blog post: https://www.concurrencylabs.com/blog/publish-jmeter-test-results-to-cloudwatch-logs/

This repo contains the following:

jmeter_server.json

This template performs the following tasks:

JMeter is installed in the following directory:

/home/ec2-user/jmeter/apache-jmeter-2.13

The JMeter test plan is downloaded to the following location:

/home/ec2-user/jmeter/test-plans/basicHttpTest.jmx

The CloudWatch Logs agent expects the JMeter test result log in the following location:

/home/ec2-user/jmeter/test-results/results.log

To start the JMeter test just SSH to the EC2 instance launched by this template and execute:

nohup /home/ec2-user/jmeter/apache-jmeter-2.13/bin/jmeter -n -t /home/ec2-user/jmeter/test-plans/basicHttpTest.jmx &

Once you run the JMeter test, you should be able to see test results flowing into CloudWatch Logs almost immediately.

To stop the test, run the following command from the JMeter EC2 instance:

/home/ec2-user/jmeter/apache-jmeter-2.13/bin/shutdown.sh