目的:可以实时查看到jmeter拷机信息
框架:将 Jmeter 的数据导入 InfluxDB ,再用 Grafana 从 InfluxDB 中获取数据并以特定的模板进行展示
性能监控平台部署实践
一、influxDB
官网:https://www.influxdata.com/downloads/
wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.7.6_linux_arm64.tar.gz
centos离线安装包:https://repos.influxdata.com/rhel/7/x86_64/stable
安装
#rpm -ivh influxdb-1.8.3.x86_64.rpm
或
#yum install -y influxdb-1.8.3.x86_64.rpm
修改配置
#vi /etc/influxdb/influxdb.conf
[http]
bind-address = "10.243.9.157:8086"
启动服务
#systemctl start influxd.service
#systemctl status influxdb.service
连接数据库是否成功
#influx -port '8086'
创建Jmeter数据库
CREATE DATABASE jmeter;
show databases;
influxDb使用参见:https://blog.youkuaiyun.com/The_Time_Runner/article/details/105610271
二、jmeter拷机脚本
添加“后端监听器”(Backend Listener)
后端监听器实现选择“org.apache.jmeter.visualiz