Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Brendan Hay <brendan@soundcloud.com> |
Safe Haskell | Safe-Infered |
- 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 :: String -> String -> IO a
- data Handle
- close :: Handle -> IO ()
Exported types
Allows gmetad and the PHP webfrontend to efficiently separate constant data metrics from volatile ones
data MetricType Source
Metric types supported by Ganglia
Concrete metric type used to emit metadata and value packets
Metric | |
|
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