packages-http
packages-http copied to clipboard
Feature Request: Server Status Page
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 https://github.com/SWI-Prolog/packages-ssl/issues/25 will become much easier to track down with such a provision.
Thank you!