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

Portabilitynon-portable (GHC extensions)
Stabilityexperimental
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Safe HaskellNone

Network.Metric.Sink.Graphite

Contents

Description

 

Synopsis

Sink Functions

class Sink a whereSource

Sink resource to write metrics to

Methods

push :: Measurable b => a -> b -> IO ()Source

Write a metric to the sink.

close :: a -> IO ()Source

Close the sink - subsequent writes will throw an error.

Instances

Sink AnySink

Existential sink instance

Sink Ganglia 
Sink SinkHandle 

open :: Host -> HostName -> PortNumber -> IO AnySinkSource

Open a new Graphite sink

Re-exports

type Group = ByteStringSource

Metric group

type Bucket = ByteStringSource

Metric bucket