下载地址:

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脚本后,可以看到加载的信息




Jmeter+nfluxDB+Grafana性能监控平台的更多相关文章

  1. influxDB1.6版安装与配置(windows环境)、Jmeter+influxDB+Grafana性能监控

    influxDB1.6版安装与配置(windows环境).Jmeter+influxDB+Grafana性能监控 来源:https://blog.csdn.net/SwTesting/article/ ...

  2. Docker系列——InfluxDB+Grafana+Jmeter性能监控平台搭建(一)

    在做性能测试的时候,重点关注点是各项性能指标,用Jmeter工具,查看指标数据,就是借助于聚合报告,但查看时也并不方便.那如何能更直观的查看各项数据呢?可以通过InfluxDB+Grafana+Jme ...

  3. Docker系列——InfluxDB+Grafana+Jmeter性能监控平台搭建(二)

    在上一篇博文中,主要是讲了InfluxDB的配置,博文链接:https://www.cnblogs.com/hong-fithing/p/14453695.html,今天来分享下Jmeter的配置. ...

  4. Docker系列——InfluxDB+Grafana+Jmeter性能监控平台搭建(三)

    在之前系列博文中,已经介绍完了数据采集和数据存储,那数据如何展示呢?所以今天就专门来讲下数据如何展示的问题. 以前博文参考: Docker系列--InfluxDB+Grafana+Jmeter性能监控 ...

  5. window平台基于influxdb + grafana + jmeter 搭建性能测试实时监控平台

    一.influxdb 安装与配置 1.1 influxdb下载并安装 官网无需翻墙,但是下载跳出的界面需要翻墙,我这里提供下载链接:https://dl.influxdata.com/influxdb ...

  6. cAdvisor0.24.1+InfluxDB0.13+Grafana4.0.2搭建Docker1.12.3 Swarm集群性能监控平台

    目录 [TOC] 1.基本概念 ​ 既然是对Docker的容器进行监控,我们就不自己单独搭建cAdvisor.InfluxDB.Grarana了,本文中这三个实例,主要以Docker容器方式运行. 本 ...

  7. jmeter+influxdb+grafana性能测试监控

    背景: 话说Jmeter原生的监控确实太丑了,听大佬们在讨论Jmeter+InfluxDb+Grafana的监控,于是,为了有一个漂亮的测试报告,就手动开始进行部署. 安装步骤: 1.influxdb ...

  8. 基于Prometheus和Grafana的监控平台 - 运维告警

    通过前面几篇文章我们搭建好了监控环境并且监控了服务器.数据库.应用,运维人员可以实时了解当前被监控对象的运行情况,但是他们不可能时时坐在电脑边上盯着DashBoard,这就需要一个告警功能,当服务器或 ...

  9. 借助Docker搭建JMeter+Grafana+Influxdb监控平台

    我们都知道Jmeter提供了原生的结果查看,既然有原生的查看结果,为什么还要多此一举使用其他工具进行查看呢,除了查看内容丰富外还有最主要的原因:Jmeter提供的查看结果插件本身是比较消耗性能的,所以 ...

随机推荐

  1. Python使用Thrift

    2019年07月30日 14:59:29 Shower稻草人 阅读数 25更多 分类专栏: Python   版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接 ...

  2. BLE——低功耗蓝牙(Bluetooth Low Energy)

    1.简介 以下蓝牙协议特指低功耗蓝牙协议. 蓝牙协议是由SIG制定并维护的通信协议,蓝牙协议栈是蓝牙协议的具体实现. 各厂商都根据蓝牙协议实现了自己的一套函数库——蓝牙协议栈,所以不同厂商的蓝牙协议栈 ...

  3. PAT 乙级 1004.成绩排名 C++/Java

    1004 成绩排名 (20 分) 题目来源 读入 n(>)名学生的姓名.学号.成绩,分别输出成绩最高和成绩最低学生的姓名和学号. 输入格式: 每个测试输入包含 1 个测试用例,格式为 第 1 行 ...

  4. rsa 解密过程

    直接扣js代码 $w = {}; if (typeof $w.RSAUtils === 'undefined') var RSAUtils = $w.RSAUtils = {}; var biRadi ...

  5. javascript学习5、JS面向对象

    创建对象的几种常用方式 1.使用Object或对象字面量创建对象 2.工厂模式创建对象 3.构造函数模式创建对象 4.原型模式创建对象 1.使用Object或对象字面量创建对象 JS中最基本创建对象的 ...

  6. python基础知识笔记-集合

    集合使用花括号将元素之间用逗号隔开即可.集合的输出里不会出现相同的元素.集合中有并集.交集.差集等,以下为一些简单的表达: def main(): list1=[1,1,2,2,3,3] print( ...

  7. JavaScrip学习之路

    本文参考资料:<JavaScript权威指南> 第六章:对象 6.1 创建对象 var book={ "main title":"javaScript&quo ...

  8. PHP函数file_get_contents()使用 https 协议时报错:SSL operation failed

    场景: file_get_contents() 函数是用于将文件的内容读入到一个字符串中,是读取文件内容常用的函数之一. 但是有时在服务器上使用file_get_contents() 函数请求http ...

  9. (2)在树莓派安装运行在Python3上的OpenCV

    https://www.jianshu.com/p/56929416b4a1 http://www.eeworld.com.cn/afdz/article_2018030511619.html htt ...

  10. JavaScript原始类型转换和进制转换

    1.JavaScript转换包括:强制转换和基本转换 如: var  str = 'A',num=10,nu=null,t=true,und=undefined,x; //注意:定义的x未被初始化:默 ...