graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04045
Re: [Question #227568]: Read datapoint from graphite programmatically
Question #227568 on Graphite changed:
https://answers.launchpad.net/graphite/+question/227568
Description changed to:
Hi,
I am trying (also, similarly to older questions) to compute and graph
network interface rates from raw counter data (cumulative bytes/pkts) I
am getting to a perl script from sflow probes.
Please don't respond with the derivative workaround or URL/webapp
functions.
The solution looks like this:
Network Switch (sflow) -> sflow2graphite.pl (TCP socket) -> carbon-cache
(port 2003)
Essentially I am using the plaintext protocol to write the counter to
graphite via the socket (carbon listening on 2003).
If I could read the last <datapoint,timepoint> (cumulative bytes,
timestamp) fed to graphite in this script, I could easily calculate
bitrate (bytes seen-last bytes seen/dt) and store a rate metric to
graphite.
Is there a way one can use the socket interface to read the last
<datapoint,timestamp> from graphite for a selected metric?
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.