Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Brendan Hay <brendan@soundcloud.com> |
Safe Haskell | Safe-Infered |
- open :: String -> String -> IO Statsd
- class MetricSink a where
- type Group = ByteString
- type Bucket = ByteString
- type Value = ByteString
- data MetricType
- data Metric = Metric MetricType Group Bucket Value
Sink Functions
class MetricSink a whereSource
Sink resource to write metrics to
push :: Metric -> a -> IO ()Source
Write a metric to the sink.
Close the sink, any subsequent writes will throw an error.
MetricSink Graphite | |
MetricSink Statsd | |
MetricSink Ganglia |
Re-exports
type Group = ByteStringSource
Metric group
type Bucket = ByteStringSource
Metric bucket
type Value = ByteStringSource
Metric value