mac系统grafana+influxdb安装及与jmeter配置

    xiaoxiao2022-07-04  218

    mac下安装grafana及入门使用

    转载文献:https://blog.csdn.net/qq_36004521/article/details/80569166

    Grafana 一个类似Kibana的东西,对后端的数据进行实时展示,他是基于JS开发的,是一个功能齐全的度量仪表盘和图形编辑器工具,他一般是和一些时序数据库进行配合来展示数据,例如 CloudWatch, Elasticsearch, Graphite, InfluxDB, OpenTSDB和Prometheus。

    安装 Mac下需要首先安装brew这个包管理工具,再安装grafana就方便多了

    brew update brew install grafana  上面的命令用来安装grafana的最新稳定版本。

    brew update brew reinstall grafana 出现如下提示,则说明安装完成

    To have launchd start grafana now and restart at login:   brew services start grafana Or, if you don't want/need a background service you can just run: grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins

    启停命令

    通过下面命令可以后台启动/停止grafana,默认端口3000

    // start brew services start grafana // stop brew services stop grafana

    浏览器登录:http://127.0.0.1:3000/

    mac安装influxdb

    转载文献:https://blog.csdn.net/qiaojialin/article/details/78834880

    brew update brew install influxdb ln -sfv /usr/local/opt/influxdb/*.plist ~/Library/LaunchAgents

    # 配置文件在/etc/influxdb/influxdb.conf ,如果没有就将/usr/local/etc/influxdb.conf 拷一个过去 配置缓存:cache-max-memory-size

    #启动服务 launchctl load ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

    #停止服务 launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.influxdb.plist

    #前台启动 influxd -config /usr/local/etc/influxdb.conf

    查看influxdb运行配置 influxd config

    启动客户端

    influx -precision rfc3339

     

     

    InfluxDB配置jmeter

    转载文献:https://www.cnblogs.com/Leo_wl/p/8439796.html

    修改InfluxDB的配置,主要配置jmeter存储的数据库与端口号,还有需要将UI端口开放,   找到 [http] 、 [[graphite]]节点,enabled改为true(默认是开启的),bind-address修改绑定的IP和端口

     

    添加需要展示数据的数据库(配置InfluxDB )

    添加InfluxDB数据库配置。输入帐号密码“admin / admin”,点击“add”添加之后点击“Test & Save” 提示“Success”说明成功了

    【注意】URL的端口是8086,而刚才配置的8083是UI的端口。

        - 8083端口是InfluxDB的UI界面展示的端口

        - 8086端口是Grafana用来从数据库取数据的端口

        - 2003端口则是刚刚设置的,Jmeter往数据库发数据的端口

    下面来配置jmeter

    配置Grafana

    最新回复(0)