← Back to team overview

graphite-dev team mailing list archive

[Question #159969]: How do you use the pickle format?

 

New question #159969 on Graphite:
https://answers.launchpad.net/graphite/+question/159969

In a prior question you talked about pickle format
https://answers.launchpad.net/graphite/+question/121579

Though you did not really go into details on how to get it to work.

I was passing pickled data (i think) to port 2004 of the graphite server.
#!/usr/bin/perl

use strict;
use warnings;

use IO::Socket;

my $socket = new IO::Socket::INET (
    PeerAddr => '192.168.122.190',
    PeerPort => '2004',
    Proto => 'tcp',
);

my @time = localtime;
my $now = time;

die "Unable to open socket: $!" unless ( $socket );

printf $socket "(lp0\n(lp1\nS'test.bill.pickle1'\np2\naI11\na$now\naa(lp3\nS'test.pickle2'\np4\naI22\naI1306891549\naa(lp5\nS'test.pickle3'\np6\naI33\naI1306891549\naa.";

close $socket;

Then in the listener.log i see that it receives the pickle connection. ( i think)

02/06/2011 01:50:15 :: MetricPickleReceiver connection with 192.168.122.7:57156 established
02/06/2011 01:50:15 :: MetricPickleReceiver connection with 192.168.122.7:57156 closed cleanly


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