<ol><li><code>export GOPATH=`pwd`go get github.com/grafana/grafana
cd $GOPATH/src/github.com/grafana/grafana
go run build.go setup # (only needed once to install godep)
$GOPATH/bin/godep restore # (will pull down all golang lib dependencies in your current GOPATH)
go run build.go build # (or 'go build .')
编译好后会在bin目录下生成grafana-server和grafana-cli第二步需要生成资源文件,但是从源代码编译会遇到phantomjs-prebuild依赖包不存在arm版本的问题,可以直接下载windows版本解开里面的public目录到bin/public下
启动