kazeburo / Plack-Middleware-ServerStatus-Lite

Plack-Middleware-ServerStatus-Lite
Other
26 stars 11 forks source link

Provide status in JSON format #3

Closed TJC closed 12 years ago

TJC commented 12 years ago

Hi, it would be extremely useful if the status information could be provided in a machine-readable format, such as JSON.

This would make it easier for automated systems to poll and monitor the server status.

Thanks, Toby

kazeburo commented 12 years ago

I think current status format is enough machine-readable. Because the same format as the Apache mod_status, many administration tool such as Cacti are already support current format.

TJC commented 12 years ago

Aww, but why accept equality when you could strive for superiority? You could have a path like http://localhost/server_status.json which returned one, and didn't interfere with the regular one. (Or look at an Accept header)

kazeburo commented 12 years ago

Released version 0.06. Support providing status in JSON format. https://metacpan.org/release/KAZEBURO/Plack-Middleware-ServerStatus-Lite-0.06

Please check this new version.