Apache-JMeter logo

Apache JMeter Test Monitoring

Template built by

Telegraf Plugins used:

Included Resources:

  • 1 Dashboard: JMeter
  • 1 Variable: bucket

Quick Install

If you have your InfluxDB credentials configured in the CLI, you can install this template with:

https://raw.githubusercontent.com/influxdata/community-templates/master/apache_jmeter/apache_jmeter.yml

Apache JMeter test monitoring Dashboard

Apache JMeter™ is an open source Java application designed to load test functional behavior and measure performance for web applications. It can be used to test performance both on static and dynamic resources, and simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types.

Why monitor Apache JMeter test results?

Apache JMeter allows developers to conduct load and performance tests across a number of apps and protocols including HTTP, HTTPS, REST API, FTP, JDBC, DAP and more. These tests help your applications stay performant no matter what changes were made by pinpointing problem areas to quickly address. Typically, developers will conduct these tests, review the results, and make the relevant changes to their applications to maintain a high level of performance. However, watching the results of these tests over time provides another level of insight to ensure application performance.

The Apache JMeter test can be set up to send data to InfluxDB. The InfluxDB dashboard provides beautiful visualizations of the collected test results in time.

How to use the Apache JMeter Monitoring Template

Once your InfluxDB credentials have been properly configured in the CLI, you can install the Apache JMeter monitoring template using the Quick Install command. Once installed, the data for the dashboard will be populated by your JMeter backend listener. Note that you might need to customize the input configuration to better serve your needs, including by specifying a new input value. All of this will depend on how your organization is currently running Apache JMeter.

This template includes a sample test project to test your instance of InfluxDB. Follow the following steps to start with the sample test project:

  • Install Apache JMeter - http://jmeter.apache.org/download_jmeter.cgi
  • Install InfluxDB 2.x on your localhost
  • Start Apache JMeter and open the Test Plan.jmx Apache JMeter project located in the ./samples directory.
  • Inside of the JMeter application, set up the my-org, my-bucket and my-token variables in the project.
  • Open Test Plan > Thread Group in the project tree
    • Loop Controller > Auth Header Setup, modify the header Authorization value to Token my-token
    • Update the following parameters on the InfluxDB Backend Listener
      • influxdbUrl the params org and bucket
      • influxdbToken the value my-token
      • Run the test

The dashboard should start presenting the results immediately. You can also see the write transaction is being shown in the KO request count cell. This is intentional. You can fix this in the Apache JMeter project by configuring the bucket that is used to store random weather data.

Key Apache JMeter monitoring metrics to monitor

Some of the most important Apache JMeter monitoring metrics that you should proactively monitor include:

  • Request count, successful and failing
  • Max, min, avg response time per transaction
  • Percentiles
  • User count
  • Number of hits
  • Number of sent and received bytes

Related Resources

Apache Tomcat Monitoring Template

Monitoring your Tomcat server will ensure that your application responds to requests without significant delays, in addition to identifying any potential errors or memory leaks in your code.

JBoss Wildfly Monitoring Template

This template provides information about your JBoss Wildfly instance, including metrics such as Uptime, CPU Usage, Memory Pool Collections, Networking and Disk IO.

Apache Zookeeper Monitoring Template

Ensure that Apache Zookeeper is performant and running properly with Apache Zookeeper Monitoring Template.

Scroll to Top