• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

yxchun

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

Jmeter+grafana+influxdb 搭建可视化性能测试监控平台

用途:监控Jmeter发送的数据成功量,总量,吞吐量等

效果图:

 1、grafana的安装

#获取grafana
> wget https://dl.grafana.com/enterprise/release/grafana-enterprise-9.4.3-1.x86_64.rpm
# 安装grafana
> rpm  install grafana-enterprise-9.4.3-1.x86_64.rpm --force --nodeps
> systemctl enable grafana-server && systemctl start grafana-server
> netstat -nuptl|grep 3000

访问grafana, http://ip:3000/

2、influxdb 安装

#下载
》  wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.2.x86_64.rpm
# 安装
》 yum localinstall influxdb-1.8.2.x86_64.rpm
#启动
》 systemctl start influxdb
#设置开机自启
》 systemctl enable influxdb
#查看influxdb状态
》 systemctl status influxdb

3、在influxdb 创建数据库

# 在控制台输入influx
> influx
# 创建数据库
> create database jmeter
> show databases

4、在grafana上面配置influxdb

 2)Grafana使用模板文件创建仪表盘,加载jmeter的数据显示模板,

下载模板:访问链接下载模板文件,下载的模板文件官网: https://grafana.com/grafana/dashboards

 

 3)查看刚才创建的数据显示模板

 4 、 jmeter配置向influxdb传送数据

创建线程组,设置循环次数为永远,添加一个http请求,就可以一直发送请求了;

 5、进入grafana查看数据

 2)

 --》结果预览

 参考:

参考:
https://www.cnblogs.com/uncleyong/p/11885192.html#_label1
https://blog.csdn.net/qq_37688023/article/details/106440503
https://blog.csdn.net/Duo_Y/article/details/129631156
https://qainsights.com/jmeter-prometheus-and-grafana-integration/

二次改造模板
https://cloud.tencent.com/developer/article/1825275

posted on 2023-08-25 17:05  yxchun  阅读(336)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3