需要安装go
brew search go@
brew install [email protected]
brew switch go 1.13.1
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
设置代理
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn
# https://goproxy.cn/
# go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct
# 或
go env -w GOPROXY=https://goproxy.io,direct
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
$ chmod +x run.sh
$ ./run.sh
waiting completion...
$ docker-compose up -d
container starts on port 3000,default user/pass is admin/admin123456"
how to add wechat notifier: https://zhuanlan.zhihu.com/p/38225794
ToUser: default value is
@all
, you can specify it asUserID1|UserID2|UserID3
http://docs.grafana.org/alerting/rules/
more info about docker-image: http://docs.grafana.org/installation/docker/
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied
$ sudo chown 472 /data/lib/grafana