Skip to content

Feature Request: Server Status Page #85

@triska

Description

@triska

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions