network-metrics-0.1.2: Send metrics to Ganglia, Graphite, and statsd.

Portabilitynon-portable (GHC extensions)
MaintainerBrendan Hay <>
Safe HaskellSafe-Infered






Exported types

data Slope Source

Allows gmetad and the PHP webfrontend to efficiently separate constant data metrics from volatile ones

data MetricType Source

Metric types supported by Ganglia

data Metric Source

Concrete metric type used to emit metadata and value packets

Default constructors

defaultMetric :: MetricSource

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

Development helpers

test :: String -> String -> IO aSource

Used to emit a default metric via GHCi

Re-exported from internal

data Handle Source

Socket handle


close :: Handle -> IO ()Source

Close a socket handle