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 GangliaType
- data GangliaMetric = GangliaMetric {
- name :: ByteString
- type' :: GangliaType
- units :: ByteString
- value :: ByteString
- host :: ByteString
- spoof :: ByteString
- group :: ByteString
- slope :: Slope
- tmax :: Word32
- dmax :: Word32
- data Ganglia = Ganglia Handle
- defaultMetric :: GangliaMetric
- open :: String -> String -> IO Ganglia
- putMetaData :: GangliaMetric -> Put
- putValue :: GangliaMetric -> Put
- type Group = ByteString
- type Bucket = ByteString
- type Value = ByteString
- data MetricType
- data Metric = Metric MetricType Group Bucket Value
- class MetricSink a where
Exported types
Allows gmetad and the PHP webfrontend to efficiently separate constant data metrics from volatile ones
data GangliaType Source
Metric types supported by Ganglia
data GangliaMetric Source
concrete metric type used to emit metadata and value packets
GangliaMetric | |
|
Default constructors
defaultMetric :: GangliaMetricSource
A default metric record
Socket Handle operations
Binary encoding
putMetaData :: GangliaMetric -> PutSource
Metric metadata
The format for this can be found in either: * gm_protocol.x in the Ganglia 3.1 sources * https:github.comlookfirstjmxtrans
putValue :: GangliaMetric -> PutSource
Metric value
type Group = ByteStringSource
Metric group
type Bucket = ByteStringSource
Metric bucket
type Value = ByteStringSource
Metric value
class MetricSink a whereSource
Describes a sink resource which is held open for metric emission
MetricSink Graphite | |
MetricSink Statsd | |
MetricSink Ganglia |