InfluxDB&Grafana在Ubuntu上搭建总结

六眼飞鱼酱① 提交于 2019-12-09 14:49:21

一、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

官网:

http://grafana.org/

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!