prometheus-effect-1.0.0: Instrument applications with metrics and publish/push to Prometheus

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Prometheus

Synopsis

Documentation

instrumentRequests :: (MonadState Registry m, MonadIO m) => m Middleware Source #

Build some very simple middleware that registers some HTTP related metrics:

  • http_requests_total: Total number of HTTP requests.
  • http_latency_seconds: Overall HTTP transaction latency.