当前位置:网站首页>(1) Construction of a real-time performance monitoring platform (Grafana+Influxdb+Jmeter)
(1) Construction of a real-time performance monitoring platform (Grafana+Influxdb+Jmeter)
2022-08-11 05:36:00 【Xiao Tan floats in Shanghai】
前言
主要介绍使用Docker安装Grafana+Influxdb结合Jmeter搭建可视化监控平台
正文
使用Docker搭建influxdb数据库服务
创建influxdb容器
命令:docker run -d --name influxdb-dsp --restart=always -p 8086:8086 -e "TZ=Asia/Shanghai" influxdb:1.8
Go into the container to create oneatp数据库,Used to store our stress data
命令:docker exec -it my-influxdb /bin/bash
到这里我们的influxdbThe database is built successfully.
使用Docker搭Grafana服务
- 创建Grafana容器
命令:docker run -d --name grafana-dsp --restart=always -p 3001:3000 -e "TZ=Asia/Shanghai" grafana/grafana
备注:Local has startedgrafanaThe container can only change the external port to3001
- 访问Grafana服务
- 备注:默认密码都是admin/admin
配置influx数据源
![]()
![]()
![]()
配置jmeterA monitoring template for stress measurement data
说明:Here we can use some off-the-shelf onesjmeter监控模板,当然也可以自定义,The author does not customize it here,Because I have to write someinfluxdbmonitoring statementsql,相对较为复杂,We have direct access hereDashboards | Grafana Labs这个grafanatemplate address,Download one of usinfluxdb的jmeter监控模板,并导入我们的grafana.
Monitoring panel template Baidu network disk address:链接: https://pan.baidu.com/s/138Pu9iyH34j9Xz-Pi6EAyg?pwd=brvr 提取码: brvr
上传Json模板文件
![]()
The final monitoring panel is as follows,So we are configuredJmeter压测服务,就可以在GrafanaReal-time monitoring of our various stress test indicators.
使用Jmeter做压力测试
本地已安装JmeterAll the installation steps will not be demonstrated.
安装教程:jmeter安装教程(mac) - 知乎
Configure stress test steps:
![]()
点击开始,Start stress testing the configured interface
备注:The number of thread group loops needs to be checked as forever
访问Grafana,View the monitored performance indicators in real time
查看influxdb数据库查看数据
If you want to retest,我们stopResults of this test,Clean up this test structure first,Perform the pressure test again,Specific pressure measurement parameter configuration,可参考官网.
结语
ok,到这里我们整个HTTPThe construction and demonstration of the real-time performance monitoring test platform is over,through the pressure testing platform,We can view our stress test results in real time,And according to the pressure test results,Analyze our interface performance,to our code,Servers, etc. to do some optimization reference.下期见...
边栏推荐
猜你喜欢

Delphi7 learning record - demo example

pip 国内源下载

Redis - Data Types (Basic Instructions, String, List, Set, Hash, ZSet, BitMaps, HyperLogLog, GeoSpatial) / Publish and Subscribe

Flask framework learning: template rendering and Get, Post requests

Delphi7学习记录-demo实例

Use Adobe genuine software for prostitution to reduce the slow employment and non-employment of fresh graduates

nodes服务器

Win10远程连接(实现多用户同时连接)

Prometheus :(一)基本概念

我的四核Cortex-A53学习之路
随机推荐
Prometheus :(一)基本概念
[No 2022 Shanghai Security Officer A Certificate Exam Question Bank and Mock Exam
群晖DS220+ 应用小笔记
Oracle中如何用一个表的数据更新另一个表中的数据_转载
[ARM] rk3399 mounts nfs error
面试宝典二:nlp常见知识点
postman脚本的应用
总结:交叉验证
Linux中安装redis
原生态mongo连接查询代码
(2) Docker installs Redis in practice (persistent AOF and RDB snapshots)
【转载】CMake 语法 - 详解 CMakeLists.txt
普林斯顿微积分读本05第四章--求解多项式的极限问题
基于 TF-IDF 文本匹配实战详细教程 数据+代码 可直接运行
【嵌入式开源库】MultiTimer 的使用,一款可无限扩展的软件定时器
判断一个字符串是否为空,如果为空,对其赋值,如果不为空,获取字符的个数并打印第一个字符
Flask framework learning: trailing slashes for routes
将double类型的数据转为字符串
课堂练习--0708
元宇宙社交应用,靠什么吸引用户「为爱发电」?
















If you want to retest,我们stopResults of this test,Clean up this test structure first,Perform the pressure test again,Specific pressure measurement parameter configuration,可参考官网.