@hackage network-metrics0.1.6
Send metrics to Ganglia, Graphite, and statsd.
Installation
Dependencies (7)
- base >=4.3 && <5
- binary
- bytestring
- data-default
- network
- random Show all…
Dependents (2)
@hackage/acme-everything, @hackage/musicbrainz-email
Network.Metrics
Table of Contents
Usage
Modules are intended to be import qualified if they need to be used in conjunction with each other.
Supported Sinks:
Network.Metrics.GangliaNetwork.Metrics.GraphiteNetwork.Metrics.Statsd
{-# LANGUAGE OverloadedStrings #-}
import Network.Metrics.Graphite
main = do
sink <- open "localhost" "1234"
push metric sink
close sink
where
metric = Metric Counter "name.space" "bucket" "1234" -- Creates graphite key: "name.space.bucket"
API
Preliminary API documentation is available on Hackage.
The API is currently in flux, and conversion between the universal
MetricCounterGaugeTimingtype to the respective sink types is not completed.
GMetric
A port of Ganglia's gmetric is built by default under the name gmetric-haskell.
Contribute
For any problems, comments or feedback please create an issue here on GitHub.
Licence
Stetson is released under the Mozilla Public License Version 2.0