Template built by
Telegraf Plugins used:
- 1 Dashboard:
- 1 Variable:
If you have your InfluxDB credentials configured in the CLI, you can install this template with:
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.jmxApache JMeter project located in the
- Inside of the JMeter application, set up the
my-tokenvariables in the project.
Test Plan > Thread Groupin 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
influxdbUrlthe params org and bucket
influxdbTokenthe 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
- User count
- Number of hits
- Number of sent and received bytes
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.