Popularity
7.7
Growing
Activity
0.0
Stable
17
6
6

Monthly Downloads: 420
Programming language: Haskell
License: LicenseRef-OtherLicense
Tags: Monitoring     Metrics     DevOps    
Latest version: v0.3.2

network-metrics alternatives and similar packages

Based on the "Metrics" category

Do you think we are missing an alternative of network-metrics or a related project?

Add another 'Metrics' Package

README

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:

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

Unified:

{-# LANGUAGE OverloadedStrings #-}

import Network.Metric

main = do
    sink <- open Ganglia (Just "thishost") "localhost" "1234"
    -- Creates ganglia key: "thishost.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 Nothing "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.

Contribute

For any problems, comments or feedback please create an issue [here on GitHub](github.com/brendanhay/network-metrics/issues).

Licence

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


*Note that all licence references and agreements mentioned in the network-metrics README section above are relevant to that project's source code only.