Centos7.6 builds Grafana+Jmeter pressure measurement monitoring ~ ~ super detailed

Table of contents

1. Preliminary preparation

2. Install and deploy influxdb

1. Install influxdb

2. Start influxdb

3. Check whether the startup is successful

4. Enter the client

3. Install and deploy grafana

1. Install grafana

2. Start grafana

3. Access the grafana console

4. Log in to Frafana

4. Start using

1. Configure connection database

2. Create a database

3. Configure the database connection address

​4. Configure the database name connection name

5. Monitoring panel configuration

1. Download panel

2. Configuration panel

6. Start Jmeter and related configuration


1. Preliminary preparation

1.下载influxdb
下载地址:
链接: https://pan.baidu.com/s/1EySwk5J6krBw_DC2ZCSxuQ 
提取码: b3pc

2.下载grafana
下载地址:
链接: https://pan.baidu.com/s/1esfFsDqtEHAzlOEDNYwe2g 
提取码: wh21

3.下载完成后,通过xftp或其他工具上传至服务器即可

2. Install and deploy influxdb

1. Install influxdb

# 在终端执行下面命令
rpm -ivh influxdb-1.8.2.x86_64.rpm

2. Start influxdb

# 在终端执行下面命令
systemctl start influxdb

3. Check whether the startup is successful

# 默认使用8086端口,执行下面命令
netstat -tnpl|grep 8086

4. Enter the client

# 在终端执行下面命令
influxdb

3. Install and deploy grafana

1. Install grafana

# 在终端执行下面命令
yum install grafana-7.1.5-1.x86_64.rpm

2. Start grafana

# 在终端执行下面命令
/etc/init.d/grafana-server restart

3. Access the grafana console

在浏览球输入http://IP:3000

4. Log in to Frafana

# 输入初始账号密码
admin/admin

4. Start using

1. Configure connection database

Enter the home page, click the settings icon, select Data Sources, click Add data source to select the influxdb database


2. Create a database

# 终端执行下面命令进入influxdb
influxdb

#创建数据库,xxx自拟即可
create database xxx

3. Configure the database connection address

Enter the database configuration page, HTTP Url input http://IP:8086


4. Configure the database name connection name

Influxdb Details / Database Enter the database name created above

5. Monitoring panel configuration

1. Download panel

Grafana official website panel download address: https://grafana.com/grafana/dashboards?search=jmeter

Find a suitable panel, click Copy ID to Clipboard, and download the JSON file


2. Configuration panel

Enter grafana, click the square icon, find Manage, click Import, and import as required

6. Start Jmeter and related configuration

Configure the script according to your own needs and finally click Run

1. Add -> Listener -> Select the backend listener
2. According to the configuration shown in the figure, the backend monitor is implemented: influxdbBackendListenerClient
3. InfluxdbUrl configures the corresponding influxdb service address 4.
Execute the script to view grafana monitoring

Guess you like

Origin blog.csdn.net/qq_46366184/article/details/130385256