一. InfluxDB配置
- 安装目录下找到influxdb.conf 文件进行修改如下:
# 找到graphite并且修改它的库与端口
[[graphite]]# Determines whether the graphite endpoint is enabled.enabled = truedatabase = "jmeter"retention-policy = ""bind-address = ":2003"protocol = "tcp"consistency-level = "one"
# 找到admin,将前面的#号去掉,开放它的UI端口(修改配置文件后,若http://localhost:8083/无法打开,则influxd -config influxdb.conf 方式打开后端程序)
[admin]
# Determines whether the admin service is enabled.
enabled = true
# The default bind address used by the admin service.
bind-address = ":8083"
#找到http,将前面的#号去掉,开放它的UI端口,开放后台端口
[http] # Determines whether HTTP endpoint is enabled. enabled = true # The bind address used by the HTTP service. bind-address = ":8086"
- 启动influxdb:安装目录下的influxd.exe 文件
- influx.exe可打开客户端, 创建数据库 create database jmeter ,show databases, use jmeter ,show measureaments
二. Grafana配置
- 下载并安装grafana
- 启动grafana服务:D:\grafana-4.5.2\bin 目录下的grafana-server.exe 程序
- 打开网址:http://192.168.8.197:3000,
- 配置数据源:
【注意】- 8083端口是InfluxDB的UI界面展示的端口,- 8086端口是Grafana用来从数据库取数据的端口
参考URL
http://blog.csdn.net/RickyOne_RR/article/details/50637839
https://www.cnblogs.com/liugh/p/6683488.html
http://www.cnblogs.com/nzyjlr/p/7754381.html