| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
JmlSvc.Instrument
Description
This module provides Network.Wai middlware for exporting Prometheus metrics and for instrumenting WAI applications.
- prometheus :: PrometheusSettings -> RequestLatency -> Text -> Middleware
- requestLatency :: IO RequestLatency
Documentation
Arguments
| :: PrometheusSettings | How we're going to use Prometheus |
| -> RequestLatency | A metric to instrument with request information |
| -> Text | The label used to identify the app |
| -> Middleware |
Instrument an app with Prometheus and export metrics from the configured handler.
requestLatency :: IO RequestLatency Source #