Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides metrics via monad-metrics/EKG in a Magicbane app context. Also reexports Wai metrics middleware.
- newtype ModMetrics = ModMetrics Metrics
- forkMetricsServer :: ByteString -> Int -> IO Server
- newMetricsWith :: Store -> IO ModMetrics
Documentation
newtype ModMetrics Source #
forkMetricsServer :: ByteString -> Int -> IO Server Source #
newMetricsWith :: Store -> IO ModMetrics Source #
Creates a metrics module with a particular Store. The Store should come from the backend you want to use for storing the metrics. For development, a simple backend that shows metrics on a web page is ekg-wai, reexported here.
Orphan instances
(Has ModMetrics α, Monad μ, MonadReader α μ) => MonadMetrics μ Source # | |