Skip to content
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

Feature Request: Server Status Page #85

Open
triska opened this issue Apr 10, 2017 · 0 comments
Open

Feature Request: Server Status Page #85

triska opened this issue Apr 10, 2017 · 0 comments

Comments

@triska
Copy link
Member

triska commented Apr 10, 2017

Analogous to library(http/http_log), please consider providing library(http/http_status).

This library could gather and display status information about the running server.

I would like to include it simply via:

:- use_module(library(http/http_status)).

:- http_handler('/my-server-status', http_status, []).

possibly with additional security options.

Then, when I visit /my-server-status, it would display, much like mod_status:

  • number of workers serving requests
  • number of idle worker
  • status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker
  • total number of accesses and byte count served
  • time the server was started/restarted and the time it has been running for
  • averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request
  • current percentage CPU used by each worker and in total by all workers combined
  • current hosts and requests being processed
  • ...

Issues like SWI-Prolog/packages-ssl#25 will become much easier to track down with such a provision.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant