New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple updates #2
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
64214ce
added source files from 0.02 CPAN release
garu 7941652
updated README for extra information
garu 9d76584
adjusting dependencies
garu 38b6459
minor pod fix
garu 15f4bac
adding Changes file
garu 83ab192
minor pod formatting
garu 92abd47
minimum perl version is 5.10 (from mojolicious)
garu 8584441
bumping up Changes and VERSION for release 0.03
garu File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Revision history for Mojolicious-Plugin-ServerStatus | ||
|
||
0.03 2015-04-30 | ||
- improved documentation | ||
- updated dist meta information | ||
- removed unneeded dependencies | ||
|
||
0.02 2014-03-19 | ||
- improved query string handling | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I got this from MetaCPAN's diff tool. Please change it if I got it wrong :) |
||
|
||
0.01 2014-03-19 | ||
- initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lib/Mojolicious/Plugin/ServerStatus.pm | ||
Makefile.PL | ||
MANIFEST This list of files | ||
README.md | ||
Changes | ||
t/00_compile.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
use strict; | ||
use warnings; | ||
use ExtUtils::MakeMaker; | ||
|
||
WriteMakefile( | ||
NAME => 'Mojolicious::Plugin::ServerStatus', | ||
AUTHOR => 'fu kai <iakuf@163.com>', | ||
EXE_FILES => [], | ||
PL_FILES => {}, | ||
LICENSE => 'perl', | ||
DISTNAME => 'Mojolicious-Plugin-ServerStatus', | ||
ABSTRACT_FROM => 'lib/Mojolicious/Plugin/ServerStatus.pm', | ||
VERSION_FROM => 'lib/Mojolicious/Plugin/ServerStatus.pm', | ||
($ExtUtils::MakeMaker::VERSION > 6.48 | ||
? (MIN_PERL_VERSION => 5.010001) # mojolicious | ||
: () | ||
), | ||
PREREQ_PM => { | ||
'Mojolicious' => '4.90', | ||
'Net::CIDR::Lite' => 0, | ||
'Parallel::Scoreboard' => '0.03', | ||
'JSON' => '2.53', | ||
'Fcntl' => 0, | ||
'IO::Handle' => 0, | ||
}, | ||
BUILD_REQUIRES => { | ||
'Test::More' => 0.90, | ||
}, | ||
META_MERGE => { | ||
requires => { perl => '5.010001' }, # mojolicious | ||
resources => { | ||
license => 'http://dev.perl.org/licenses/', | ||
repository => 'https://github.com/iakuf/mojolicious-plugin-serverstatus', | ||
bugtracker => 'https://github.com/iakuf/mojolicious-plugin-serverstatus/issues', | ||
}, | ||
}, | ||
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, | ||
clean => { FILES => 'Mojolicious-Plugin-ServerStatus-*' }, | ||
#test => { | ||
# TESTS => 't/*.t', | ||
#}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,68 @@ | ||
mojolicious-plugin-serverstatus | ||
=============================== | ||
Mojolicious::Plugin::ServerStatus | ||
--------------------------------- | ||
|
||
This is a [Mojolicious](http://mojolicio.us) plugin to show server status, like Apache's | ||
mod\_status. It displays server status information | ||
in multiprocess Mojolicious servers such as morbo and hypnotoad. | ||
|
||
It is based on [Plack::Middleware::ServerStatus::Lite](https://metacpan.org/pod/Plack::Middleware::ServerStatus::Lite). | ||
|
||
This module changes status only before and after executing the applications, | ||
so it cannot monitor keepalive session and network I/O wait. | ||
|
||
#### Installation #### | ||
|
||
cpanm Mojolicious::Plugin::ServerStatus | ||
|
||
or manually: | ||
|
||
perl Makefile.PL | ||
make test | ||
make install | ||
|
||
#### Synopsis #### | ||
|
||
```perl | ||
plugin 'ServerStatus' => { | ||
path => '/server-status', | ||
allow => [ '127.0.0.1', '192.168.0.0/16' ], | ||
}; | ||
``` | ||
|
||
|
||
% curl http://server:port/server-status | ||
Uptime: 1234567789 | ||
Total Accesses: 123 | ||
BusyWorkers: 2 | ||
IdleWorkers: 3 | ||
-- | ||
pid status remote_addr host method uri protocol ss | ||
20060 A 127.0.0.1 localhost:10001 GET / HTTP/1.1 1 | ||
20061 . | ||
20062 A 127.0.0.1 localhost:10001 GET /server-status HTTP/1.1 0 | ||
20063 . | ||
20064 . | ||
|
||
# JSON format | ||
% curl http://server:port/server-status?json | ||
{"Uptime":"1332476669","BusyWorkers":"2", | ||
"stats":[ | ||
{"protocol":null,"remote_addr":null,"pid":"78639", | ||
"status":".","method":null,"uri":null,"host":null,"ss":null}, | ||
{"protocol":"HTTP/1.1","remote_addr":"127.0.0.1","pid":"78640", | ||
"status":"A","method":"GET","uri":"/","host":"localhost:10226","ss":0}, | ||
... | ||
],"IdleWorkers":"3"} | ||
|
||
|
||
For extra information, please refer to [the full documentation for Mojolicious::Plugin::ServerStatus](https://metacpan.org/pod/Mojolicious::Plugin::ServerStatus) on CPAN. | ||
|
||
#### Author #### | ||
|
||
fu kai (iakuf {at} 163.com) | ||
|
||
#### License #### | ||
|
||
This library is free software; you can redistribute it and/or modify | ||
it under the same terms as Perl itself. | ||
|
||
mojolicious-plugin-serverstatus |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iakuf please update this date whenever you make the release to CPAN :)