性能监控---Grafana+InfluxDB+jmeter(windows版)
监控平台搭建流程:
1.InfluxDB搭建(数据库)
2.jmeter设置(生成数据)
3.Grafana操作(数据展示)
具体操作:
1.InfluxDB搭建(influxdb-1.4.2_windows_amd64)
工具链接:https://pan.baidu.com/s/1w6DV3f5hj0iuJw40IQvETQ 提取码: es7q
关联jmeter:influxdb.conf
[[graphite]]
# Determines whether the graphite endpoint is enabled.
enabled = true
database = "jmeter"(数据库名称,自定义)
retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
consistency-level = "one"
启动数据库服务:influxd.exe
cd D:\personal\tools\Jmeter-tools\influxdb-1.4.2-1
influxd -config influxdb.conf
可以写成一个批处理文件,容易操作
启动数据库客户端:influx.exe
创建jmeter数据库
create database jmeter
use jmeter
show measurements
2.jmeter设置
添加后端监听器
3.Grafana操作(6.4.4-Windows-64)
工具链接:https://pan.baidu.com/s/1H2UwfJks-wF4UI8WQjeMJQ 提取码: k4h9
默认使用端口:3000
进入http://localhost:3000,登录默认用户名和密码都是admin
添加数据库
查看图表
常见监控指标:
jmeter.all.h.count 所有请求的TPS
jmeter.<请求名称>.h.count 对应<请求名称>的TPS
jmeter.all.ok.pct99 99%的请求响应时间
jmeter.<请求名称>.ok.pct99 对应<请求名称>99%的请求响应时间
jmeter.all.test.startedT 线程数