06 Apr 2013 18:03:35 UTC
- Distribution: Plack-Middleware-Debug-Mongo
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (223 / 142 / 5)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.8.9
- Activity24 month
- Download (15.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHIM Anton Gerasimov
- EXPORTED FUNCTIONS AND SUBROUTINES
- SEE ALSO
- COPYRIGHT AND LICENSE
Plack::Middleware::Debug::Mongo::ServerStatus - Server status debug panel for Plack::Middleware::Debug
# inside your psgi app enable 'Debug', panels => [ [ 'Mongo::ServerStatus', connection => $options ], ];
Plack::Middleware::Debug::Mongo::ServerStatus extends Plack::Middleware::Debug by adding MongoDB server status debug panel. Panel displays data which available through the db.serverStatus() command issued in mongo CLI. Before displaying info some tweaks were processed such as flatten several complex structures.
localTime 2013-02-28T10:00:42 mem.bits 64 mem.mapped 1056 mem.mappedWithJournal 2112 mem.note not all mem info support on this platform mem.supported false network.bytesIn 46182 network.bytesOut 9697590320 network.numRequests 587 ok 1
MongoDB connection options. Passed as HASH reference. Default server to connect is mongodb://localhost:27017. For additional information please consult MongoDB::MongoClient page.
Plack::Middleware::Debug::Mongo::ServerStatus doesn't export any subroutines by default. On request available the following functions and subroutines.
Subroutine used to convert multidimensional hash references into simple hash reference. As well it converts DateTime and boolean objects received from MongoDB into human readable format. The Plack::Middleware::Debug::Mongo::Database uses this subroutine.
Please report any bugs or feature requests through the web interface at https://github.com/Wu-Wu/Plack-Middleware-Debug-Mongo/issues
Anton Gerasimov <firstname.lastname@example.org>
This software is copyright (c) 2013 by Anton Gerasimov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Plack::Middleware::Debug::Mongo, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Plack::Middleware::Debug::Mongo
For more information on module installation, please visit the detailed CPAN module installation guide.