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

[ library, metrics, monitoring ] [ Propose Tags ]

Send metrics directly from Haskell to various monitoring and metrics services.

Supported services are Ganglia, Graphite, and statsd.

Please see for further information and usage.

[Skip to Readme]
Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.8, 0.2.9, 0.3.0, 0.3.1, 0.3.2, 0.4
Dependencies base (>=4.3 && <5), binary, bytestring, cmdargs, data-default, network, random, time [details]
License LicenseRef-OtherLicense
Author Brendan Hay <>
Maintainer Brendan Hay <>
Category Metrics, Monitoring
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by BrendanHay at Thu Jul 26 14:10:45 UTC 2012
Distributions NixOS:0.4
Executables gmetric-haskell
Downloads 7547 total (59 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for network-metrics-0.2.0

[back to package description]


Table of Contents

<a name="usage" />


All modules including Network.Metric expose the same interfaces to sinks, and re-export the required types for constructing metrics.

Supported Sinks:

  • Network.Metric.Sink.Ganglia
  • Network.Metric.Sink.Graphite
  • Network.Metric.Sink.Statsd
  • Network.Metric.Sink.Stdout


{-# LANGUAGE OverloadedStrings #-}

import Network.Metric

main = do
    sink <- open Ganglia "localhost" "1234"
    -- Creates ganglia key: "" with an "int32" type
    push sink $ Counter "" "bucket" 1234
    close sink

Specific Sink:

{-# LANGUAGE OverloadedStrings #-}

import Network.Metric.Sink.Graphite

main = do
    sink <- open "localhost" "1234"
    -- Creates graphite key: ""
    push sink $ Counter "" "bucket" 1234
    close sink

<a name="api" />


Preliminary API documentation is available on Hackage.

The API is currently in flux, and conversion between the universal Counter, Gauge, and Timing ctors to the respective sink types is not yet completed.

<a name="gmetric" />


A port of Ganglia's gmetric is built by default under the name gmetric-haskell.

<a name="contribute" />


For any problems, comments or feedback please create an issue here on GitHub.

<a name="licence" />


Stetson is released under the Mozilla Public License Version 2.0