InfluxDB2.0性能监控环境搭建

1,099 阅读1分钟

安装influxdb

docker run -d -p 8084:8083 -p 8087:8086 --name influxdb influxdb:2.0.7

安装Telegraf监控

brew install telegraf 

export INFLUX_TOKEN=your_token

telegraf --config http://localhost:xxxx/api/v2/telegrafs/xxxx

image.png

编写JMeter脚本并运行

image.png

结果展示

image.png

image.png

【补充】Centos8安装Influx

获取资源文件
portal.influxdata.com/downloads/i…

启动服务

$ service influxdb start  # 启动服务
$ service influxdb status # 查看状态

Install Telegraf
docs.influxdata.com/telegraf/v1…