graphite积累(二)

安装graphite的时候发现,graphite安装分graphite-web,whisper,carbon。

graphite-web顾名思义,是graphite的网站部分,使用Django框架,使用cairo来根据需要呈现图形

whisper:数据库,用来储存时间序列数据

carbon:监听时间序列数据

graphite的工作流程是,carbon先把获取的数据写入数据库,然后webapp读取,最后显示图形。

目录说明:

bin  数据收集相关工具

conf  数据储存相关配置文件

  carbon.conf  数据收集carbon进程涉及的配置

  dashboard.conf  Dashboard UI相关配置

  graphite.wagi  wsgi相关配置

  storage-schemas.conf  作用于数据库的图表定义

  whitelist.conf  定义允许存储的metrics白名单

  graphtemplates.conf  图形化展示数据时使用的模版

examples  脚本试例

lib  carbon和twisted库

storages  数据文件储存目录

webapp  数据前端涉及程序

example

通过脚本传递数据给graphite: