Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Ridley (ReaderT RidleyOptions t a) |
Instances
KatipContext Ridley Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types getKatipContext :: Ridley LogContexts # localKatipContext :: (LogContexts -> LogContexts) -> Ridley a -> Ridley a # getKatipNamespace :: Ridley Namespace # localKatipNamespace :: (Namespace -> Namespace) -> Ridley a -> Ridley a # | |
Katip Ridley Source # | |
MonadTrans RidleyT Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types | |
Monad t => MonadReader RidleyOptions (RidleyT t) Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types ask :: RidleyT t RidleyOptions # local :: (RidleyOptions -> RidleyOptions) -> RidleyT t a -> RidleyT t a # reader :: (RidleyOptions -> a) -> RidleyT t a # | |
Monad t => Monad (RidleyT t) Source # | |
Functor t => Functor (RidleyT t) Source # | |
Applicative t => Applicative (RidleyT t) Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types | |
MonadIO t => MonadIO (RidleyT t) Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types |
type PrometheusOptions = AdapterOptions Source #
data RidleyMetric Source #
ProcessMemory | |
CPULoad | |
GHCConc | Tap into the metrics exposed by GHC.Conc |
Network | |
Wai | |
DiskUsage | Gets stats about Disk usage (free space, etc) |
CustomMetric Text (forall m. MonadIO m => RidleyOptions -> RegistryT m RidleyMetricHandler) | A user-defined metric, identified by a name. |
Instances
Eq RidleyMetric Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types (==) :: RidleyMetric -> RidleyMetric -> Bool # (/=) :: RidleyMetric -> RidleyMetric -> Bool # | |
Ord RidleyMetric Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types compare :: RidleyMetric -> RidleyMetric -> Ordering # (<) :: RidleyMetric -> RidleyMetric -> Bool # (<=) :: RidleyMetric -> RidleyMetric -> Bool # (>) :: RidleyMetric -> RidleyMetric -> Bool # (>=) :: RidleyMetric -> RidleyMetric -> Bool # max :: RidleyMetric -> RidleyMetric -> RidleyMetric # min :: RidleyMetric -> RidleyMetric -> RidleyMetric # | |
Show RidleyMetric Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types showsPrec :: Int -> RidleyMetric -> ShowS # show :: RidleyMetric -> String # showList :: [RidleyMetric] -> ShowS # |
data RidleyOptions Source #
Instances
Monad t => MonadReader RidleyOptions (RidleyT t) Source # | |
Defined in System.Metrics.Prometheus.Ridley.Types ask :: RidleyT t RidleyOptions # local :: (RidleyOptions -> RidleyOptions) -> RidleyT t a -> RidleyT t a # reader :: (RidleyOptions -> a) -> RidleyT t a # |
newOptions :: [(Text, Text)] -> [RidleyMetric] -> RidleyOptions Source #
katipScribes :: Lens' RidleyOptions (Namespace, [(Text, Scribe)]) Source #
runHandler :: RidleyMetricHandler -> IO () Source #