| Portability | non-portable (GHC extensions) |
|---|---|
| Stability | experimental |
| Maintainer | Brendan Hay <brendan@soundcloud.com> |
| Safe Haskell | Safe-Infered |
Network.Metrics.Ganglia
Contents
Description
- data Slope
- = Zero
- | Positive
- | Negative
- | Both
- | Unspecified
- data MetricType
- data Metric = Metric {
- name :: ByteString
- type' :: MetricType
- units :: ByteString
- value :: ByteString
- host :: ByteString
- spoof :: ByteString
- group :: ByteString
- slope :: Slope
- tmax :: Word32
- dmax :: Word32
- defaultMetric :: Metric
- open :: String -> String -> IO Handle
- emit :: Metric -> Handle -> IO Handle
- test :: IO a
- data Handle
- close :: Handle -> IO ()
Exported types
Allows gmetad and the PHP webfrontend to efficiently separate constant data metrics from volatile ones
Constructors
| Zero | |
| Positive | |
| Negative | |
| Both | |
| Unspecified |
Concrete metric type used to emit metadata and value packets
Constructors
| Metric | |
Fields
| |
Default constructors
A default metric record
Socket Handle operations
open :: String -> String -> IO HandleSource
Create a new unconnected socket handle for UDP communication
emit :: Metric -> Handle -> IO HandleSource
Emit a metric's metadata and value on the specified socket handle