- 安装InfluxDB并运行
docker run -d -p 8086:8086 --name=influxdb influxdb
或者
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.5.1.x86_64.rpm
yum localinstall influxdb-1.5.1.x86_64.rpm
service influxdb start
- 安装Telegraf
# 下载Telegraf
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.6.3-1.x86_64.rpm
# 安装Telegraf
yum localinstall telegraf-1.6.3-1.x86_64.rpm
-
配置Telegraf,配置文件默认位于/etc/telegraf/telegraf.conf
-
配置influxDB的信息
- 启动Telegraf