推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
GHfan
V2EX  ›  Python

今天给 druid 监控了,喷喷

  •  
  •   GHfan ·
    ghfan · Dec 28, 2015 · 3661 views
    This topic created in 3797 days ago, the information mentioned may be changed or developed.

    说实话,我真不知道 druid 是干啥的。。。

    上次监控了 pm2.5, 老大觉得他们 ci 的 python sdk 还行,就让监控这东西,这 druid 大数据啥的也不懂,搞了小一天,算是弄好了。过程不算麻烦,除了不懂大数据那一堆东西还有 ci 一个小坑 - -

    不过生产环境没内网,他们的那几个安装方式都不能直接用 - -, 提供的安装 shell 脚本也是用的 yum ,醉了,都不考虑生成环境没内网的情况么。。。

    最后给这么搞定了:

    1. 修改 yum.conf ,添加跳板机代理 “ proxy=http://10.173.9.xx:xx
    2. 把 install_agent.sh 拷贝到机器上,然后执行
    3. 修改 /etc/oneapm-ci-agent/oneapm-ci-agent.conf,添加 proxy 配置
    4. 重启

    然后写 druid 的监控,跑定时任务,然后,然后就好了 。。

    代码我就不放了,毕竟用的东西还挺多的,截个图吧,别喷我的图 (┬_┬),尽最大努力了

    1 replies    2015-12-29 09:52:27 +08:00
    homu
        1
    homu  
       Dec 29, 2015
    这码打的…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1279 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:25 · PVG 01:25 · LAX 10:25 · JFK 13:25
    ♥ Do have faith in what you're doing.