自定义安装Graphite

2018-10-18  本文已影响0人  大大大大大大大熊

安装三个组件:carbon,Graphite-web,whisper

pip install https://github.com/graphite-project/carbon/tarball/master --install-option="--prefix=/home/XXX/graphite" --install-option="--install-lib=/home/wangxiaotong/graphite/lib"
pip install whisper --install-option="--prefix=//home/wangxiaotong/graphite" --install-option="--install-lib=/home/XXX/graphite/lib"
pip install https://github.com/graphite-project/whisper/tarball/master --install-option="--prefix=/home/wangxiaotong/graphite" --install-option="--install-lib=/home/XXX/graphite/webapp"

注意:

配置

修改配置文件:把../graphite/conf 下的.example结尾的文件 重命名或者拷贝命名(去掉.example)

  1. 启动carbon-cache
    ./carbon-cache.py start
    检查:netstat -nap | grep 2003
  2. 同步数据
    git上面下载manage.py文件,放入webapp文件夹
    ./manage.py migrate
 Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying account.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying dashboard.0001_initial... OK
  Applying events.0001_initial... OK
  Applying sessions.0001_initial... OK
  Applying tagging.0001_initial... OK
  Applying tagging.0002_on_delete... OK
  Applying tagging.0003_adapt_max_tag_length... OK
  Applying tags.0001_initial... OK
  Applying url_shortener.0001_initial... OK
  1. 启动graphite-web
    ./manage.py runserver 10.11.6.79:8085 --settings=graphite.settings 1>/home/wangxiaotong/graphite/log/webapp/process.log 2>&1 &

  2. 浏览器页面


    10.11.6.79:8085
上一篇 下一篇

猜你喜欢

热点阅读