一、InfluxDB https://influxdata.com/downloads/ ubuntu:
1、下载: curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
2、安装:
sudo apt-get update && sudo apt-get install influxdb
sudo service influxdb start
3、配置:
/etc/influxdb/influxdb.conf
修改端口和db存放位置
4、启动:
sudo service influxdb start
sudo service influxdb restart
sudo service influxdb restart
启动参考日志:
/var/log/influxdb/influxd.log
5、卸载 apt-get remove --purge influxdb
二、Grafana
官网:
Ubuntu下载安装:
http://docs.grafana.org/installation/debian/
APT安装 添加仓库
1、在/etc/apt/sources.list文件添加:
deb https://packagecloud.io/grafana/stable/debian/ wheezy main
2、添加apt 包
curl https://packagecloud.io/gpg.key | sudo apt-key add -
3、更新和安装
$ sudo apt-get update
$ sudo apt-get install grafana
注:老版本系统中可能要安装 apt-transport-https
$ sudo apt-get install -y apt-transport-https
4、配置 /etc/grafana/grafana.ini 4、启动/停止服务 $ sudo service grafana-server start $ sudo service grafana-server stop $ sudo service grafana-server restart
5、卸载 apt-get remove --purge grafana
饼图插件: 安装: sudo grafana-cli plugins install grafana-piechart-panel sudo git clone https://github.com/grafana/piechart-panel.git