Safe Haskell | None |
---|
A module representing a Gauge, which is simply an action that returns the instantaneous measure of a value for charting.
The action that provides the gauge's value may be replaced using set, or read using value.
gaugeExample = do g <- gauge $ return 1 x <- value g set g $ return 2 y <- value g return (x == 1 && y == 2)
Documentation
An instantaneous measure of a value.
ratio :: Applicative f => f Double -> f Double -> f DoubleSource
Compose multiple actions to create a ratio. Useful for graphing percentage information, e. g.
connectionUtilizationRate :: IO (Gauge IO) connectionUtilizationRate = gauge $ ratio openConnectionCount $ return connectionPoolSize
module Data.Metrics.Types