基本原理
colletd/telegraf(收集数据) —> influxdb(保存数据) —> grafana(展示数据)
安装配置
influxdb安装
- cd /opt
- 下载官网的RPM包
- yum localinstall influxdb-1.4.2.x86_64.rpm
- systemctl enable influxdb
- systemctl start influxdb
telegraf
- cd /opt
- 下载官网的RPM包
- yum localinstall ~
- vim /etc/telegraf/telegraf.conf
- 编辑配置文件的[[outputs.influxdb]]
- 编辑配置文件的[[inputs.*]]
- systemctl enable telegraf
- systemctl start telegraf
grafana
- cd /opt
- 下载官网的RPM包
- yum localinstall ~
- systemctl enable grafana-server
- systemctl start grafana-server
默认启动端口3000,账户密码均为admin