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

Portabilitynon-portable (GHC extensions)
Stabilityexperimental
MaintainerBrendan Hay <brendan@soundcloud.com>
Safe HaskellSafe-Infered

Network.Metrics.Ganglia

Contents

Description

 

Synopsis

Exported types

data Slope Source

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

data Ganglia Source

Constructors

Ganglia Handle 

Instances

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

data MetricType Source

Metric type

Constructors

Counter 
Gauge 
Timer 

Instances

data Metric Source

Concrete metric data type

Instances

class MetricSink a whereSource

Describes a sink resource which is held open for metric emission

Methods

push :: Metric -> a -> IO ()Source

close :: a -> IO ()Source

Instances

Network.Metrics.Internal operations