Jmeter+nfluxDB+Grafana性能监控平台
下载地址:
nfluxDB下载地址:https://portal.influxdata.com/downloads/
Grafana下载地址:https://grafana.com/grafana/download
nfluxDB配置:
打开/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/etc/influxdb/influxdb.conf,修改以下内容
[[graphite]]
# Determines whether the graphite endpoint is enabled.
enabled = true
database = "jmeter"
# retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
consistency-level = "one"
[meta]
# Where the metadata/raft database is stored
dir = "/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/var/lib/influxdb/meta
" # Automatically create a default retention policy when creating a database.
retention-autocreate = true # If log messages are printed for the meta service
logging-enabled = true
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/var/lib/influxdb/data" # The directory where the TSM storage engine stores WAL files.
wal-dir = "/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/var/lib/influxdb/wal"
仍是data下面
query-log-enabled = true
[retention]
# Determines whether retention policy enforcement enabled.
enabled = true # The interval of time when retention policy enforcement checks run.
check-interval = "30m"
[shard-precreation]
# Determines whether shard pre-creation service is enabled.
enabled = true # The interval of time when the check to pre-create new shards runs.
check-interval = "10m" # The default period ahead of the endtime of a shard group that its successor
# group is created.
advance-period = "30m"
[monitor]
# Whether to record statistics internally.
store-enabled = true # The destination database for recorded statistics
store-database = "_internal" # The interval at which to record statistics
store-interval = "10s"
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true # Determines whether the Flux query endpoint is enabled.
flux-enabled = false # Determines whether the Flux query logging is enabled.
# flux-log-enabled = false # The bind address used by the HTTP service.
bind-address = ":8086"
配置完成后,开始启动,进入/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/usr/bin,执行
./influxd -config /Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/etc/influxdb/influxdb.conf
看到启动界面,则表示启动成功
新打开窗口,打开influxdb的客户端,进入
/Users/qiaojiafei/Documents/work/soft/influxdb-1.7.6-1/usr/bin,执行
./influx
新建数据库
create database jmeter
jmeter配置
jmeter添加Backend Listener,并选择influxdbMetricsSender
influxdbUrl输入:http://localhost:8086/write?db=jmeter
启动jmeter脚本运行,查看结果是否入库
回到终端命令行,输入
use jmeter
查看库里的数据记录
select * from jmeter
配置grafana
进入grafana安装目录:
/Users/qiaojiafei/Documents/work/soft/grafana-6.1.6/bin,执行
./grafana-server
浏览器打开地址:http://localhost:3000/login,账号密码均是admin,首次登录需要修改密码
登录成功后,点击左侧的设置,点击data source
选择add data source
选择influxdb
输入influxdb的信息
添加dashboards
也可以选择import,导入,官方的模板可参考:https://grafana.com/dashboards?dataSource=influxdb,搜索框输入jmeter
点击进去后,点击 copy id
粘贴copy的id,点击load
选择influxdb的相关信息,点击import
执行jmeter脚本后,可以看到加载的信息
最新文章
- 把Mongodb配置成windows服务
- centos6环境下安装tmux
- VS2013 生成安装文件
- @Autowired与@Resource的区别
- 低功耗蓝牙4.0BLE编程-nrf51822开发(9)
- BZOJ 3531(树链剖分+线段树)
- 一个测ip和端口是否联通的工具类
- Project Euler:Problem 47 Distinct primes factors
- 关于我们-成功人士西装定制服务第一品牌派斯特PAISTETAILOR绅士礼服
- Nginx反向代理导致PHP获取不到正确的HTTP_HOST,SERVER_NAME,客户端IP的解决方法
- 存储那些事儿(二): 下一代Linux文件系统BTRFS简介
- html5 兼容版本 video
- 一、TensorFlow的简介和安装和一些基本概念
- Mysql 索引 事物
- ElasticSearch搜索介绍四
- Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password
- Java-Runoob-高级教程-实例-方法:10. Java 实例 – 标签(Label)
- 使用ubuntu搭建时间机器备份服务
- hdu 3791:二叉搜索树(数据结构,二叉搜索树 BST)
- 2019 google kickstart round A
热门文章
- Vue开发之项目创建
- 项目Beta冲刺(团队4/7)
- discuz x3.3标题的最少字数限制设置方法
- Spring Cloud Stream 知识点
- Entity 类中加了@Id 注解后仍然出现org.hibernate.AnnotationException: No identifier specified for entity 错误
- mysql导出PDM表结构并带有注释
- SpringBoot Ajax跨域问题(session共享问题)
- ansible部署EFK
- vim命令(转)
- SQL进阶-索引设置&;sql优化