自定义安装Graphite

安装三个组件: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"

注意:

  • 错误:setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)
  • 解决:pip install --uograde setuptools
  • 错误:ImportError: No module named zope.interface
  • 解决:应该提前安装好相关依赖,sudo yum install -y bitmap bitmap-fonts-compat fontconfig cairo python-devel python-memcached python-twisted pycairo mod_python python-ldap python-simplejson memcached python-zope-interface mod_wsgi python-sqlite2 pytz

配置

修改配置文件:把../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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容