Readme for network-metrics-0.2.4

Network.Metric

Table of Contents

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

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.

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

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