Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Path = [Text]
- serveMetrics :: MonadIO m => Port -> Path -> IO RegistrySample -> m ()
- serveMetricsT :: MonadIO m => Port -> Path -> RegistryT m ()
- prometheusApp :: Path -> IO RegistrySample -> Application
Documentation
The HTTP web route on which to serve data
For example:
http://localhost:9090/metrics
should use a path of["metrics"]
.http://localhost/
should use a path of[]
.
serveMetrics :: MonadIO m => Port -> Path -> IO RegistrySample -> m () Source #
prometheusApp :: Path -> IO RegistrySample -> Application Source #