title: influxdb+telegraf+grafana/influxdb+jmeter+grafana/grafana+prometheus
tags: 新建,模板,小书匠
grammar_cjkRuby: true
1、下载
telegraf
influxdb
下载地址:对应版本直接在后面改版本号就能下载了
https://dl.influxdata.com/influxdb/releases/influxdb-1.7.7_windows_amd64.zip
https://dl.influxdata.com/telegraf/releases/telegraf-1.11.3_windows_amd64.zip
grafana直接去官网下载即可。
https://grafana.com/docs/
Prometheus:
发行版本下载地址:https://prometheus.io/download/
github:https://github.com/prometheus
exporters汇总下载:https://prometheus.io/docs/instrumenting/exporters/
2、安装配置(influxdb+telegraf+grafana/influxdb+jmeter+grafana)
2.1 安装和配置influxdb(通用)
2.1.1 安装
linux直接yum安装 或者官网下载。
yum -y install influxdb
windows官网下载后解压即可。
2.1.2 配置
修改配置文件,路径:
linux:/etc/influxdb/influxdb.conf
windows:解压的目录下
1、修改如下字段的目录:
2、配置graphite
如果jmeter中监听器Backend Listener,使用GraphiteBackendListenerClient,就需要配置这个;如果使用InfluxDbBackendListenerClient就不需要配置。以防万一配置了总没事。
jmeter监听器Backend Listener,选择InfluxDbBackendListenerClient
以前的版本我们都是选择GraphiteBackendListenerClient,JMeter
3.2版本以后,引入了一个新的后端监听器接口。 该监听器支持使用InfluxDB HTTP API并通过异步HTTP调用将度量标准直接推送到数据库,而无需任何额外的数据库配置。可参阅:
http://jmeter.apache.org/usermanual/realtime-results.html
https://www.blazemeter.com/blog/how-to-use-grafana-to-monitor-jmeter-non-gui-resu