Linux::GetPidstat::Writer::Mackerel - Write pidstat's results to mackerel
use Linux::GetPidstat::Writer::Mackerel; my $instance = Linux::GetPidstat::Writer::Mackerel->new( mackerel_metric_type => 'service', mackerel_api_key => 'api_key', mackerel_service_name => 'service_name', now => $t, dry_run => $self->{dry_run}, ); $instance->output('backup_mysql', 'cpu', '21.20');
To install Linux::GetPidstat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Linux::GetPidstat
CPAN shell
perl -MCPAN -e shell install Linux::GetPidstat
For more information on module installation, please visit the detailed CPAN module installation guide.