一.安装statsd
1. statsd+graphite安装过程有点复杂,依赖好几个框架,幸好有了docker,一条命令搞定
2. 启动:
docker run -d --name graphite --restart=always -p 5100:80 -p 5101:81 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 hopsoft/graphite-statsd
3.查看
4.测试数据
5.查看数据
6.杀掉
二.与gunicorn 结合
https://gunicorn-docs.readthedocs.io/en/latest/instrumentation.html
示例: