We all know that Jmeter provides native result viewing. Since there is a native result viewing tool, why do we need to use other tools to view it? In addition to the rich viewing content, there are also the main reasons: jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder] -n means running JMeter in non-GUI mode; -t indicates the JMeter test script file to be run, usually a file ending with jmx; -l indicates the file where the results are recorded, which ends with jtl by default; -e indicates that a test report will be generated after the test is completed; -o specifies the location of the generated result folder. Implementation principle Next, we will explain in detail how to use InfluxDB and Grafana with the help of Docker to build a performance visualization monitoring platform.
Grafana concept : An open source software with rich indicator dashboards and graphic editors, suitable for Graphite, Elasticsearch, OpenTSDB, Prometheus, and InfluxDB. To put it simply, it is an open source WEB visualization platform. JMeter introduces Backend Listener to send statistical indicator data to the Influxdb database in real time during the stress test. The Grafana (open source WEB visual dashboard) data source is connected to Influxdb to create a visual dashboard and obtain test indicator data in real time. Install InfluxDB Install and pull the influxdb image under docker: docker pull influxdb Enter the container: docker exec -it container id /bin/bash Create database jmeter influx show databases; create database jmeter; show databases; use jmeter; select * from jmeter; exit; Install GrafanaPull the grafana image: docker pull grafana/grafana Run the container: docker run --name my_grafana -p 3000:3000 grafana/grafana Access grafana: http://ip:3000 The username and password are both "admin" Add a database after entering Configure the database after entering Save and test Configure display templateThere are many templates, you can preview them and choose the appropriate one to download. Download address: https://grafana.com/grafana/dashboards Download json file Prepare to import Just import the downloaded json file. After the settings are completed, enter the panel Here you can set the refresh rate Configure JmeterCreate Jmeter script. Setting up the backend listener You can view the results after running the script This is the end of this article about building a JMeter+Grafana+Influxdb monitoring platform with Docker. For more information about building a JMeter+Grafana+Influxdb monitoring platform with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: CSS Problems with Using Position:fixed and Margin-top Together on Same-Level Elements
Are you still looking for a way to enable Hyper-v...
Related articles: 9 practical tips for creating we...
Analyze four common methods and principles: float...
Table of contents 1. js memory 2. Assignment 3. S...
Definition and Usage The display property specifi...
Table of contents Comprehensive comparison From t...
Detailed introduction to the steps of installing ...
Note: There was no error in the project startup d...
The complete syntax of the select statement is: S...
Download from official website: https://www.mysql...
The installation of compressed packages has chang...
In the past, when I needed the border length to b...
The default firewall of CentOS7 is not iptables, ...
The benefits of using MySQL master-slave replicat...
Original address: http://www.webdesignfromscratch...