Ramsay

Results 69 comments of Ramsay

The first one :) The first one is generated by Hugo and Emacs org-mode, I feel comfortable with these tools. The second one is built on [Rust](https://github.com/ramsayleung/blog), it's my first...

Oooh, Yes, the `dockerfile` is not right, it's still in `WIP` status. If you have time, feel free to contribute to it :)

参见 [issue7](https://github.com/samrayleung/jd_spider/issues/7),我之前为了单机测试又改回来。或许我应该整理一下代码

graphite.py 是自己编写的呢,不然谁来帮我自动生产呢 :) 其实`graphite.py`是按照 [scrapy 数据收集器](https://doc.scrapy.org/en/0.14/topics/stats.html?highlight=re)的模式来收集数据并且进行监控,只不过是将scrapy 的`scrapy.stats`换成了`graphite`,而`graphite`的核心就是收集数据,然后画图展示,过一段时间,再收集数据,然后再画图,更详细的信息就要参考`graphite`的文档了或者是参考 https://github.com/gnemoug/distribute_crawler

你把自己的联系方式暴露出来了: ) 讨论技术问题的时候我用邮件,你可以发邮件给我,或者是在issue 上阐述你的问题嘛

最完整的graphite教程就是[graphite 的官方文档](https://graphite.readthedocs.io/en/latest/), 虽说graphite 的文档齐全,但是graphite 的安装还是很麻烦的,并且只能在Linux 安装了,此外,为了让graphite 可以配合scrapy, 需要做额外的配置,参考[scrapy-graphite](https://github.com/noplay/scrapy-graphite). 说了这么多,就是想说graphite 安装麻烦,配置也麻烦,为了简化这些麻烦的东西,我做了个docker镜像,把所有东西都配置好了,只要用docker 跑起来就可以了, 如果跑了docker 还有问题的话,可以参考https://github.com/samrayleung/jd_spider/issues/16

我做的镜像在 `samrayleung/graphite-statsd`, 也就是https://hub.docker.com/r/samrayleung/graphite-statsd/. 通过 ``` docker run -d --name graphite --restart=always -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 samrayleung/graphite-statsd ``` 命令拉取并且运行我的docker 镜像.如果还有什么疑问的,就应该去看docker 的文档了.

目测是你看不明白๑乛◡乛๑  graphite 的文档非常齐备,甚至有点多.`scrapy`的`statscol` 感觉也挺好理解的

我在上面已经把`statscol`给你列出来了: >其实graphite.py是按照 [scrapy 数据收集器](https://doc.scrapy.org/en/0.14/topics/stats.html?highlight=re)的模式来收集数据并且进行监控,只不过是将scrapy 的scrapy.stats换成了graphite

I have the same issue with @terlar , this is my `general` configuration: ```emacs-lisp (general-define-key "C-c b" (general-predicate-dispatch 'helm-projectile-ag (samray/does-use-ivy) 'samray/counsel-ag-symbol-at-point) ) ``` and this is `which-key` configuration: ```emacs-lisp (use-package...