The network-metrics package

[Tags: library]

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

Supported services are Ganglia, Graphite, and statsd.

Please see http://github.com/brendanhay/network-metrics/blob/master/README.md for further information and usage.


[Skip to ReadMe]

Properties

Versions0.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
Change logNone available
Dependenciesbase (>=4.3 && <5), binary, bytestring, cmdargs, data-default, network, random, time [details]
LicenseOtherLicense
AuthorBrendan Hay <brendan.g.hay@gmail.com>
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
StabilityExperimental
CategoryMetrics, Monitoring
Home pagehttp://github.com/brendanhay/network-metrics
Bug trackerhttp://github.com/brendanhay/network-metrics/issues
Source repositoryhead: git clone git://github.com/brendanhay/network-metrics.git
Executablesgmetric-haskell
UploadedThu Feb 14 07:35:21 UTC 2013 by BrendanHay
DistributionsNixOS:0.4
Downloads3046 total (172 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for network-metrics-0.2.9

Network.Metric

Table of Contents

<a name="usage" />

Usage

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

Supported Sinks:

Unified:

{-# LANGUAGE OverloadedStrings #-}

import Network.Metric

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

Specific Sink:

{-# LANGUAGE OverloadedStrings #-}

import Network.Metric.Sink.Graphite

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

<a name="api" />

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" />

GMetric

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

<a name="contribute" />

Contribute

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

<a name="licence" />

Licence

network-metrics is released under the Mozilla Public License Version 2.0