系统:CentOS6.6
安装 go语言
[root@server0 ~]# tar zxvf go1.8.1.linux-amd64.tar.gz -C /usr/local
[root@server0 ~]# mkdir /Golang
[root@server0 ~]# vim /etc/profile
export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export GOPKG=$GOROOT/pkg/tool/linux_amd64
export GOARCH=amd64
export GOOS=linux
export GOPATH=/Golang
export PATH=$PATH:$GOBIN:$GOPKG:$GOPATH/bin
[root@server0 ~]# source /etc/profile
[root@server0 ~]# go version
go version go1.8.1 linux/amd64
2、安装prometheus
[root@server0 ~]# tar zxvf prometheus-1.6.3.linux-amd64.tar.gz -C /usr/local
[root@server0 ~]# cd /usr/local/prometheus-1.6.3.linux-amd64
[root@server0 prometheus-1.6.3.linux-amd64]# nohup ./prometheus -config.file=prometheus.yml &
3、安装grafana
[root@server0 ~]# rpm -ivh grafana-4.3.0-1.x86_64.rpm
warning: grafana-4.3.0-1.x86_64.rpm: Header V4 RSA/SHA1 Signatu