← Back to team overview

graphite-dev team mailing list archive

Re: [Question #199531]: Sub-second data gathering

 

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

    Status: Open => Answered

Michael Leinartas proposed the following answer:
Graphite can't handle sub-second granularity unfortunately. The data
format stores epoch time using an unsigned long int which isn't big
enough for any further precision. If you want Graphite to store the data
you'll need to aggregate it to per-second values using something like
statsd.

You can do bulk updates however - from the commandline, the whisper-update.py utility can take multiple points or you can send to the carbon-daemon via Python using the pickle format (by default, pickle receiver listens on port 2004). These are merely pickle'd lists of metric tuples of the format:
[ (metric_name, (timestamp, value)) ]
You can pickle.dumps() one of these and send it via tcp socket to carbon-daemon.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.