influxDB+telefraf+grafana ╰半夏微凉° 2021-12-18 08:07 257阅读 0赞 此贴自己记录 ### 下载[grafana][] ### [https://grafana.com/grafana/download?platform=windows][grafana] ### 从官网下载influxDB\\telefraf的方法 : ### ![598189-20190516164120401-516839961.png][] [https://blog.csdn.net/v6543210/article/details/86934941][https_blog.csdn.net_v6543210_article_details_86934941] 还有解压方式 wget https://dl.influxdata.com/telegraf/releases/telegraf-1.9.0~rc2\_windows\_amd64.zip unzip telegraf-1.9.0~rc2\_windows\_amd64.zip wget https://dl.influxdata.com/telegraf/releases/telegraf-1.10.4\_linux\_amd64.tar.gz tar xf telegraf-1.10.4\_linux\_amd64.tar.gz https://dl.influxdata.com/influxdb/releases/influxdb-1.7.6\_windows\_amd64.zip wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.6\_linux\_amd64.tar.gz tar xvfz influxdb-1.7.6\_linux\_amd64.tar.gz 一开始是解压在D:\\software\\performance\\windows\\influxdb-1.7.3-1 修改了配置文件,在performance目录下新建了目录 ![598189-20190516103116762-550222926.png][] 重新启动,出现问题 No connection could be made because the target machine actively refused it ![598189-20190515221004479-1371194769.png][] 然后 自己把\\windows\\influxdb-1.7.3-1目录下文件都放到performance\\influxdb下 ![598189-20190516103046030-134550664.png][] set HOME=D:\\software\\performance\\windows\\influxdb-1.7.3-1 influxd.exe -config influxdb.conf ![598189-20190516102939740-1394422826.png][] 可视化界面参考:[https://blog.csdn.net/qq\_35981283/article/details/84068053][https_blog.csdn.net_qq_35981283_article_details_84068053] 用的![598189-20190516112436871-797040904.png][] # grafana安装 # 然后将conf文件夹中的sample.ini在原地复制一份,并改名为custom.ini。我们可以对custom.ini进行编辑。 默认grafana的端口是3000,这个端口需要Windows的权限,我们可以在custom.ini对其进行修改。将custom.ini中的http\_port取消注释并修改,我改成了8090,这个端口是不需要Windows额外的权限。 ![598189-20190516113454185-1775857864.png][] 现在我们就可运行它了,直接运行bin文件夹中的grafana-server.exe,双击grafana-server.exe运行或者命令行运行,最好是用命令行的方式运行(start+空格+要运行的程序的绝对路径和程序名)。 然后打开localhost:8090(自己改的端口) 默认用户名密码都是admin 配置jmeter收集数据 jmeter脚本跑完才有表数据 ![598189-20190516152432104-859851586.png][] ![598189-20190516152741871-208806045.png][] ![598189-20190516152224685-1084638177.png][] [https://www.cnblogs.com/yyhh/p/5990228.html][https_www.cnblogs.com_yyhh_p_5990228.html] 转载于:https://www.cnblogs.com/dieyaxianju/p/10868314.html [grafana]: https://grafana.com/grafana/download?platform=windows [598189-20190516164120401-516839961.png]: /images/20211218/42c392fd2cd344e28a2a3ecc0aa6933c.png [https_blog.csdn.net_v6543210_article_details_86934941]: https://blog.csdn.net/v6543210/article/details/86934941 [598189-20190516103116762-550222926.png]: /images/20211218/2e36ea10b6884e7cacdb0cb1ea74ddf4.png [598189-20190515221004479-1371194769.png]: /images/20211218/1d1554364eac4c5a9ed8910dc7926adc.png [598189-20190516103046030-134550664.png]: /images/20211218/52230aad8f2a498c90f6992b5cf0a7ee.png [598189-20190516102939740-1394422826.png]: /images/20211218/0dd2bb68565a4493a5bb3e548a769ddf.png [https_blog.csdn.net_qq_35981283_article_details_84068053]: https://blog.csdn.net/qq_35981283/article/details/84068053 [598189-20190516112436871-797040904.png]: /images/20211218/af5c8d8443a04d79ad44363c09b7ade2.png [598189-20190516113454185-1775857864.png]: /images/20211218/82bb6a6a0c8e4e399fa07ff5646cf941.png [598189-20190516152432104-859851586.png]: /images/20211218/b72885a928ab4f7c833acee4fc32453a.png [598189-20190516152741871-208806045.png]: /images/20211218/20433009691f4acebc353d4f70b078de.png [598189-20190516152224685-1084638177.png]: /images/20211218/ef677baac5b5406984154a2cd1618694.png [https_www.cnblogs.com_yyhh_p_5990228.html]: https://www.cnblogs.com/yyhh/p/5990228.html
还没有评论,来说两句吧...