← Back to team overview

graphite-dev team mailing list archive

Re: [Question #637073]: Send pickled metrics data to graphite

 

Question #637073 on Graphite changed:
https://answers.launchpad.net/graphite/+question/637073

    Status: Open => Answered

Piotr Popieluch proposed the following answer:
Here you can find an example pickle client:
https://github.com/graphite-project/carbon/blob/master/examples/example-pickle-client.py

There are many ways in python to process files, most likely you will do something like:
with open('path', 'r') as f:
    for line in f:
        do_something(line)

Don't expect too much performance gains with pickling, the bottleneck
will most likely not be the protocol itself. I've successfully run line
protocol with millions of metrics per second, the protocol was the least
of my worries.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.