Hello everyone,

I'm announcing the release of the wai-middleware-metrics package.

http://hackage.haskell.org/package/wai-middleware-metrics
https://github.com/Helkafen/wai-middleware-metrics

Full example here with scotty:
https://hackage.haskell.org/package/wai-middleware-metrics-0.2.1/docs/Network-Wai-Metrics.html


It registers some ekg metrics in WAI web servers (scotty, servant, yesod...) using a middleware.

Right now the metrics are:
- wai.request_count
- wai.server_error_count
- wai.latency_distribution

Time distributions will benefit from future developments in ekg and become more descriptive.

Other metrics could be added. Ideas, contributions and comments are welcome!

Cheers

--
Sebastian de Bellefon