1. 安装cairo和pycairo

yum -y install cairo pycairo

2. pip安装方式

pip是python的一个组件,安装pip的方法可以参考pip安装和使用教程。

pip install django django-tagging carbon whisper graphite-web

2. 安装文件布局

Graphite安装之后,在安装位置(默认为/opt/graphite)的文件布局如下:

  • bin  - 二进制文件目录,包括carbon-cache.py、carbon-relay.py、validate-storage-schemas.py、carbon-aggregator.py、carbon-client.py等程序
  • build
  • conf  - 配置文件目录
  • lib  - 库目录
  • storage  - 数据存放目录,包括log,whisper数据库,索引,rrd数据等
  • webapp – webapp文件存放目录

3. 设置Graphite配置文件

cp carbon.conf.example carbon.conf
cp whitelist.conf.example whitelist.conf

  • /opt/graphite/conf是配置文件存放目录
  • carbon.conf是carbon的配置文件,分三个片段cache、relay和aggregator。需要使用到的配置项后面在必要的时候会讲到
  • storage-schemas.conf配置文件定义数据的存储。
  • graphite.wsgi配置文件配置django。

4. uwsgi和nginx安装

wget http://projects.unbit.it/downloads/uwsgi-1.9.20.tar.gz; tar xzvf uwsgi-1.9.20.tar.gz; cd uwsgi-1.9.20; python setup.py install
yum -y install nginx

5. nginx配置和uwsgi配置

vim /etc/nginx/conf.d/graphite.conf
server {
    listen 1988;
    server_name graphite;

access_log /opt/graphite/storage/log/webapp/access.log ;
    error_log /opt/graphite/storage/log/webapp/error.log ;

location / {
        uwsgi_pass 0.0.0.0:1999;
        include uwsgi_params;

        proxy_connect_timeout 300;
        proxy_send_timeout 300;
        proxy_read_timeout 300;
    }
}
vim /opt/graphite/webapp/graphite/wsgi_graphite.xml
<uwsgi>
    <socket>0.0.0.0:1999</socket>
    <workers>1</workers>
    <processes>1</processes>
    <listen>100</listen>
    <chdir>/opt/graphite/webapp/graphite</chdir>
    <pythonpath>..</pythonpath>
    <module>wsgi</module>
    <pidfile>graphite.pid</pidfile>
    <master>true</master>
    <enable-threads>true</enable-threads>
    <logdate>true</logdate>
    <daemonize>/var/log/uwsgi_graphite.log</daemonize>
</uwsgi>

6. 启动nginx和应用程序

service nginx start; uwsgi -x /opt/graphite/webapp/graphite/wsgi_graphite.xml

Graphite安装相关推荐

  1. graphite安装笔记

    0.Graphite目录 Graphite安装之后,在安装位置(默认为/opt/graphite)的文件布局如下: 目录 介绍 /opt/graphite/bin 二进制文件目录 /opt/graph ...

  2. 基于Python的监控工具Graphite安装笔记

    基于Python的监控工具Graphite安装笔记 iDaemon » 基于Python的监控工具Graphite安装笔记 基于Python的监控工具Graphite安装笔记 零. 环境简介 Gent ...

  3. graphite安装(一键搞定版)

    一.python部分: 0.系统: $ cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 1.检查系统python是否2.7以上 ...

  4. Graphite的安装与部署

    一.概述 Graphite 是一个基于Django的企业级监控工具,能实时可视化和按时间序列存储数据.严格的说,Graphite只是一个根据数据实时绘图的工具,数据收集通常通过第三方工具(如Gangl ...

  5. Graphite系统监控

    转载至 : http://my.oschina.net/fufangchun/blog/232895?p=1 目录[-] 一.简介: 二.Graphite的安装及配置 0.Graphite目录 1.安 ...

  6. Graphite 简介

    2019独角兽企业重金招聘Python工程师标准>>> 一. Graphite 项目简介 Graphite是一个企业级的监控工具,可以在廉价机硬件上运行.最初由Chris Davis ...

  7. metrics和graphite监控

    简介   Graphite 是一个数据绘图工具,安装完成之后需要喂它数据,就可以根据你的需要将数据生成制定的格式(绘图.json.xml等),还可以和Nagios结合完成报警功能.具体的数据采集工具是 ...

  8. Graphite监控上手指南

    主要讨论内容 在本文中我们将会谈及如下用于创建Graphite监控系统的主题: Carbon和Whisper简介 Whisper存储模式和聚合 Graphite Web应用 前提条件 首先,我们需要能 ...

  9. 使用graphite和cabot搭建监控服务

    说起监控,我们一般会首先想到zabbix,nagios,ganglia等等.但是对于非ops开发人员而言,这些东西,多多少少让人感到陌生.所以本文将从一个服务端开发人员的视角,介绍如何通过graphi ...

最新文章

  1. 网页制作常见的问题(怎样兼容IE6/IE7/火狐浏览器)
  2. jQuery就业课系列之.jQueryDOM
  3. SQL Server 2017 正式发布
  4. webusercontrol ajax,ASP.NET页面使用AjaxPro2完成JS调用后台方法
  5. csv文件怎么转成excel_Python操作Excel文件(1):花式大师pyexcel
  6. navicat导入成功但是没有数据_数据库能建立成功,但是还报错,应该怎么处理...
  7. 链表的应用 —— 多项式运算(加法+乘法)
  8. jdbctemplate mysql blob_JdbcTemplate 操作Oracle Blob
  9. mysql查询本年的函数_sql 查询本年、本月、本日记录的语句,附SQL日期函数
  10. Java项目前后端文件简体转换繁体
  11. APS计划排产软件在食品饮料行业的应用
  12. 抖音上超火系列的透明头像是怎么弄的?操作原来如此简单
  13. 地图API公交线路查询
  14. 【Excel实战】--目录及链接
  15. evplayer android闪退,Evplayer优弊端汇总
  16. mybatis(二)xml配置文件详细说明
  17. 你在职场可能犯下的最大错误
  18. 音视频 SDP 添加码率
  19. php短信验证案例,PHP项目之容联云短信发送验证码
  20. ChatGPT 客户端来喽

热门文章

  1. 开启硬件辅助虚拟化——Intel虚拟化之旅
  2. 北京小程序外包开发服务
  3. 鸿蒙系统桌面壁纸为什么出现条纹,vivo新系统OriginOS发布后,这些桌面就被玩坏了...
  4. via自定义搜索引擎代码_VIA浏览器自定义logo设置
  5. OverFeat——全卷积首次用于检测问题 (目标检测)(深度学习)(ICLR 2014)
  6. 基于GitHub搭建个人网站
  7. Ubuntu出现 recovering journal ; /dev/sda1: clean, ***/*** files, ***/*** blocks 等信息无法开机的问题
  8. 计算机专业写作与沟通大作业,四川电大5110047 计算机办公软件应用第1次形考作业答案...
  9. (1)Artemis简介
  10. 通达OA使用手册(一)