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

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

Network.Metrics.Statsd

Contents

Description

 

Synopsis

Sink Functions

open :: String -> String -> IO SinkSource

Open a new Statsd sink

class MetricSink a whereSource

Sink resource to write metrics to

Methods

pushSource

Arguments

:: Metric 
-> a 
-> IO ()

Write a metric to the sink.

closeSource

Arguments

:: a 
-> IO ()

Close the sink, any subsequent writes will throw an error.

Instances

MetricSink Sink

Existential sink instance

MetricSink Ganglia 
MetricSink Graphite 
MetricSink Statsd 
MetricSink StdoutSink 

Re-exports

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