jmeter的性能监控框架搭建记录(Influxdb+Grafana+Jmeter)
查看筆記
http://note.youdao.com/noteshare?id=c700365713abb98bd3d10e6f45393af9&sub=6F4E14FF3F9D4167AE7F7D01D5BD31A1
一、Influxdb的安裝
1.搭建influxdb
在linux服務器上,輸入命令?wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.0.x86_64.rpm?,下載安裝包;
下載完成后,輸入命令?sudo yum localinstall influxdb-1.2.0.x86_64.rpm?,解壓安裝包;
?
啟動查看是否存在influx
ps aux | grep influx;
?
?
啟動influxdb服務。
1 # centos7.0以上版本 ? 1.1 systemctl start influxdb
1.2 systemctl restart influxdb
? 1.3 systemctl stop influxdb2 # centos7.0以下版本 ?service influxdb start
2、配置文件路徑 :vi ?/etc/influxdb/influxdb.conf
?
3.啟動influx時,遇到這個問題,升級influxdb。
Redirecting to /bin/systemctl start ?influxdb.service
?
4.Liunx關閉防火墻,方便使用web界面打開influxdb。如下命令:
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service。
?
5.使用虛擬機ip:8083端口即可。
虛擬機ip查看,ifconfig
?
web界面訪問:
?
二、Grafana的安裝。
7.可視化工具Grafana:簡介及安裝
1.安裝
進入官網https://grafana.com/grafana/download
?
wget?https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.3.2-1.x86_64.rpm?
(安裝軟件)sudo yum?localinstall?grafana-5.3.2-1.x86_64.rpm?
2.service grafana-server start
web訪問Grafana ?http://192.168.1.5:3000/ 默認登錄名/密碼:admin/admin
?
3.創建DashBoard
創建好數據源之后,就需要創建DashBoard(儀表盤),可以自定義,也可以導入你需要的儀表盤,官方提供了很多的可選儀表盤。
https://grafana.com/dashboards
BashBoard地址:BashBoard
這里我選擇jmeter相關的儀表盤,選擇導入,示例如下:
①、搜索jmeter儀表盤
?
②、選擇對應的儀表盤ID或者下載json格式的文件。
?
三,jmeter測試。
1、使用jmeter3.2版本以上,否則會失敗。
http://192.168.1.5:8086/write?db=jmeterdata
虛擬機IP:8086/write?db=jmeterdata(db代表的是influxdb的數據庫)
?
四,查看數據。
?
?
轉載于:https://www.cnblogs.com/xuzhongtao/p/9907386.html
總結
以上是生活随笔為你收集整理的jmeter的性能监控框架搭建记录(Influxdb+Grafana+Jmeter)的全部內容,希望文章能夠幫你解決所遇到的問題。