Net::Graphite - Interface to Graphite
use Net::Graphite; my $graphite = Net::Graphite->new( host => '127.0.0.1', # default port => 2003, # default path => 'foo.bar.baz', # optional trace => 0, # copy output to STDERR if true proto => 'tcp', # default (can be 'udp') timeout => 1, # default ); $graphite->send(6); # default time is "now" OR my $graphite = Net::Graphite->new( host => '127.0.0.1', # default port => 2003, # default fire_and_forget => 1, # if I can't send, I don't care! ); $graphite->send( path => 'foo.bar.baz', value => 6, time => time(), );
Interface to Graphite which doesn't depend on AnyEvent.
AnyEvent::Graphite
http://graphite.wikidot.com/
Scott Lanning <slanning@cpan.org>
To install Net::Graphite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Graphite
CPAN shell
perl -MCPAN -e shell install Net::Graphite
For more information on module installation, please visit the detailed CPAN module installation guide.