服務器端安裝部署說明
1.創建基礎鏡像docker pull centos2.利用centos鏡像啟動名為monitor實例mkdir /data0/monitordocker run -it -d --privileged --restart=always -p 28083:8083 -p 28086:8086 -p 23000:3000 -p 20443:443 -p23306:3306 -v /data0/monitor:/data0/ --name monitor docker.io/centos /usr/sbin/init3.進入docker并部署influxdb和grafana docker exec -it monitor bash #如果通過代理上網,需要配置 export http_proxy=http://10.130.170.55:8080 export https_proxy=$http_proxy export ftp_proxy=$http_proxy export rsync_proxy=$http_proxy #安裝influxdbcat < create database monitor;
> show databases;
name: databases
name
----
_internal
monitor
> use monitor;
> SHOW SERIES;
#安裝部署grafana
cd /data0/
yum install git wget lsof telnet
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.3-1.x86_64.rpm
yum install initscripts fontconfig
yum install urw-fonts
rpm -Uvh grafana-4.6.3-1.x86_64.rpm
service grafana-server start
systemctl enable grafana-server
#導入模板
訪問地址
http://10.134.100.7:23000/