wai-middleware-metrics

A WAI middleware to collect EKG request metrics

https://github.com/Helkafen/wai-middleware-metrics

Version on this page:0.2.3
LTS Haskell 22.13:0.2.4
Stackage Nightly 2024-03-14:0.2.4
Latest on Hackage:0.2.4

See all snapshots wai-middleware-metrics appears in

BSD-3-Clause licensed by Sebastian de Bellefon
Maintained by [email protected]
This version can be pinned in stack with:wai-middleware-metrics-0.2.3@sha256:43c23efb35754e84fcc4b77264d67757f9d6887f8e6d91d4e579f089cf33b8c8,2876

Module documentation for 0.2.3

This WAI middleware counts the number of requests, the number of responses by status code and keeps a latency distribution.

It can be added to any WAI-based webserver, such as Yesod, Scotty, Spock and Servant.

The counters are EKG Counters from ekg-core. https://ocharles.org.uk/blog/posts/2012-12-11-24-day-of-hackage-ekg.html