skip to navigation
skip to content

bucketize 0.1.0

A CLI tool to determine STDIN line rate at the interval of choice.

What?

A CLI tool to determine STDIN line rate at the interval of choice.

Installation

$ python setup.py install

Examples

Send to Graphite the number of close() calls a process does per 10 seconds:

$ strace -p 2760 -e close | bucketize --time_bucket_size 10 --output_template "one.two.three {amount} {time}"
one.two.three 1 1476562447.65
one.two.three 0 1476562457.65
one.two.three 68 1476562467.65
one.two.three 1 1476562477.65
one.two.three 1 1476562487.65
one.two.three 0 1476562497.65^C

$ strace -p 2760 -e close | bucketize --time_bucket_size 10 --output_template "one.two.three {amount} {time}"| nc graphite-server 2003