日志监控工具 Graphite 0.9.15

docs:https://graphite.readthedocs.io/en/latest/
https://amosannn.github.io/2018/11/29/install-graphite/

一、系统与重点步骤

  1. 系统:
    CentOS 7.2 + Python 2.7.5
    WSGI server and web server,选用:gunicorn + nginx
  2. git下载graphite相关源码下载、安装:
$ cd /opt //下载源码:
$ git clone https://github.com/graphite-project/graphite-web.git
$ git clone https://github.com/graphite-project/carbon.git
$ git clone https://github.com/graphite-project/whisper.git

然后通过python setup.py install安装:

$ cd graphite-web 
$ python setup.py install 

这时在/opt下多了一个graphite目录

  1. 检查依赖:
$ cd /opt/graphite-web
$ python check-dependencies.py
$ yum install python-devel cairo-devel openssl-devel
$ yum install gcc libffi-devel 
  1. 一些配置可能需要
$ ./configure
$ make
$ make install 
$ cd /opt/graphite/conf/

通过 cp 去掉 .example 后缀

常用操作

  1. 向 Graphite 写入数据
    https://amosannn.github.io/2018/12/17/data-alert-by-graphite-and-grafana/

https://www.jianshu.com/p/3d98196c4290
https://blog.csdn.net/liuxiao723846/article/details/82735147

export PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/"

  1. pip install --no-binary=:all: https://github.com/graphite-project/whisper/tarball/master

  2. pip install --no-binary=:all: https://github.com/graphite-project/carbon/tarball/master

  3. pip install --no-binary=:all: https://github.com/graphite-project/graphite-web/tarball/master

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    小迈克阅读 8,145评论 1 3
  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 6,598评论 0 3
  • 随着业务系统越来越多,系统化的监控需求就来了。前天看了一下graphite,感觉整体架构还是不错的。废话不多...
    igool阅读 19,759评论 8 10
  • 在本文档中,我们会尽量将相关文件安装在/opt/graphite目录 因此,在/opt路径下创建一个文件夹grap...
    刘小六2000阅读 7,457评论 0 0
  • 坐在去上海高铁的路上,已经是下午16:32分,喜欢在一群不认识的人中间,自顾自的做着自己的事情,仿佛跟这个世界遇见...
    共振白巫师阅读 3,047评论 4 2