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

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

Network.Metric.Sink.Stdout

Contents

Description

 

Synopsis

Sink Functions

open :: String -> String -> IO MetricSinkSource

Open a new Stdout sink

class Sink a whereSource

Sink resource to write metrics to

Methods

push :: Encodable b => a -> Metric b -> IO ()Source

Write a metric to the sink.

close :: a -> IO ()Source

Close the sink - subsequent writes will throw an error.

Instances

Sink MetricSink

Existential sink instance

Sink Ganglia 
Sink Graphite 
Sink Statsd 
Sink StdoutSink 

Re-exports

type Group = ByteStringSource

Metric group

type Bucket = ByteStringSource

Metric bucket

data Metric a Source

Instances

Show a => Show (Metric a)