Wai package:ekg-wai

This module provides remote monitoring of a running process over HTTP. It can be used to run an HTTP server that provides both a web-based user interface and a machine-readable API (e.g. JSON.) The former can be used by a human to get an overview of what the program is doing and the latter can be used by automated monitoring tools. Typical usage is to start the monitoring server at program startup
main = do
forkServer "localhost" 8000
...
and then periodically check the stats using a web browser or a command line tool (e.g. curl)
$ curl -H "Accept: application/json" http://localhost:8000/
Remote monitoring of processes This library lets you remotely monitor a running process over HTTP. It provides a simple way to integrate a monitoring server into any application. This is a port of the ekg library to depend on wai instead of snap.