Jacky Wu bio photo

Jacky Wu

Software Architect in China

Email Twitter Facebook LinkedIn Github Weibo
  • 依赖Python2.7+, 即使官方文档里描述需要python2.4+.
    logging.captureWarnings(True)  
    AttributeError: 'module' object has no attribute 'captureWarnings'  
  • mysql handler有bug, 见我提交的pull request

  • 自己创建mysql的database和table

    
    CREATE DATABASE `diamond`  DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    CREATE TABLE metrics
    (
    id INTEGER AUTO_INCREMENT,
    timestamp INT UNSIGNED NOT NULL,
    metric VARCHAR(255) NOT NULL,
    value VARCHAR(255) NOT NULL,
    PRIMARY KEY (id)
    );

Diamond代码阅读小结

  • 每个Collector一个进程, 并且管理逻辑里会自动结束掉不应该启动的Collector进程
  • 每个Handler是一个进程