Plack::Middleware::Debug::Mongo - Extend Plack::Middleware::Debug with MongoDB panels
version 0.02
# inside your psgi app use Plack::Builder; my $app = sub {[ 200, [ 'Content-Type' => 'text/html' ], [ '<html><body>OK</body></html>' ] ]}; my $options = { host => 'mongodb://mongo.example.com:29111', db_name => 'sampledb' }; builder { mount '/' => builder { enable 'Debug', panels => [ [ 'Mongo::ServerStatus', connection => $options ], [ 'Mongo::Database', connection => $options ], ]; $app; }; };
This distribution extends Plack::Middleware::Debug with some MongoDB panels. At the moment, listed below panels are available.
Display panel with MongoDB server status information. See Plack::Middleware::Debug::Mongo::ServerStatus for additional information.
Display panel with MongoDB database and its collections statistics. See Plack::Middleware::Debug::Mongo::Database for additional information.
Please report any bugs or feature requests through the web interface at https://github.com/Wu-Wu/Plack-Middleware-Debug-Mongo/issues
Plack::Middleware::Debug::Mongo::ServerStatus
Plack::Middleware::Debug::Mongo::Database
Plack::Middleware::Debug
MongoDB
MongoDB Server Status Reference
MongoDB Database Statistics Reference
MongoDB Collection Statistics Reference
Anton Gerasimov, <chim@cpan.org>
Copyright (C) 2013 by Anton Gerasimov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::Debug::Mongo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Debug::Mongo
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Debug::Mongo
For more information on module installation, please visit the detailed CPAN module installation guide.