用法:
http://pypi.python.org/pypi/python-statsd/1.5.2与我安装的不是很一样,稍作修改再用(使用help(statsd)查看用法)
一 概念说明
这个是使用说明跟下面描述的statsd的用法不是很一样。可能是不同版本所致。
Concepts
-
bucketsEach stat is in its own "bucket". They are not predefined anywhere. Bucketscan be named anything that will translate to Graphite (periods make folders,etc)
-
valuesEach stat will have a value. How it is interpreted depends on modifiers. Ingeneral values should be integer.
-
flushAfter the flush interval timeout (defined by
config.flushInterval,default 10 seconds), stats are aggregated and sent to an upstream backend service.
Counting
gorets:1|c
深入理解statsd:概念与使用教程

本文详细介绍了statsd的用法和概念,包括计数、采样、时间统计、仪表、集合以及多指标包。通过示例展示了如何在Python中使用statsd客户端进行数据记录,并解释了statsd在Graphite中的工作原理。
最低0.47元/天 解锁文章
23

被折叠的 条评论
为什么被折叠?



