Net::Graphite::Reader - Access to Graphite's raw data
use Net::Graphite::Reader; my $gr = Net::Graphite::Reader->new( url => 'http://my.graphite.server', ); my $response = $gr->query( target => 'some.cool.statistic', from => '-24hours', to => 'now', ); my @metrics = $response->all_metrics; print "Average is " . $metrics[0]->average . "\n";
Base URI to your graphite instance
Username (if using basic auth)
Password (if using basic auth)
Alternative Furl instance to use
To install Net::Graphite::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Graphite::Reader
CPAN shell
perl -MCPAN -e shell install Net::Graphite::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.