Git Product home page Git Product logo

grafana's Introduction

[Grafana]

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.

依赖库

  • Go 1.6
  • NodeJS v4+
  • sqlite3

GO 环境搭建

vi /etc/profile
export GOPATH="/root/go"
export GOROOT="/usr/local/go"
export PATH=$GOROOT/bin:$PATH
export PATH=$GOPATH/bin:$PATH

NodeJS 环境搭建

https://nodejs.org/en/下载node源码包

cd /usr/local
tar -zxvf node-v4.5.0-linux-x64.tar
chmod -R 755 node
vi /etc/profile
export NODE=/usr/local/node
export PATH=${NODE}/bin:$PATH

编译安装前准备

创建$GOPATH/src/github.com/grafana/grafana目录,然后git最新的代码到此目录.

mkdir $GOPATH/src/github.com/grafana/grafana

编译后端源码步骤

cd $GOPATH/src/github.com/grafana/grafana
go run build.go setup
go run build.go build

编译前端源码步骤

cd $GOPATH/src/github.com/grafana/grafana
npm install --registry=http://registry.npm.taobao.org
npm install -g grunt-cli --registry=http://registry.npm.taobao.org
grunt

运行

./bin/grafana-server

配置

启动项配置

在/etc/grafana/目录:

  1. grafana.ini
  2. dev.ini (if found)
  3. custom.ini

基本权限配置

在/usr/share/grafana/conf

1.defaults.ini 2.sample.ini

程序发布各平台安装包

发布安装包依赖FPM工具.

####安装GEM

sudo apt-get install ruby
sudo apt-get install ruby-dev

####安装FPM

gem install fpm

编译发布

发布后的安装包(.tar .deb .rpm文件)都存在在$GOPATH/src/github.com/grafana/grafana/dist目录下面, 部分临时文件都存在在/tmp目录下面

go run build.go build package

grafana's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.