Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brendanhay/network-metrics
Send metrics to Ganglia, Graphite, and statsd
https://github.com/brendanhay/network-metrics
Last synced: 2 months ago
JSON representation
Send metrics to Ganglia, Graphite, and statsd
- Host: GitHub
- URL: https://github.com/brendanhay/network-metrics
- Owner: brendanhay
- License: mpl-2.0
- Created: 2012-07-16T11:53:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-01-29T10:02:51.000Z (almost 10 years ago)
- Last Synced: 2024-05-01T23:17:17.911Z (8 months ago)
- Language: Haskell
- Homepage:
- Size: 1.54 MB
- Stars: 17
- Watchers: 8
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Network.Metric
==============Table of Contents
-----------------* [Contribute](#contribute)
* [Licence](#licence)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:**
````haskell
{-# 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:**
````haskell
{-# 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](http://hackage.haskell.org/package/network-metrics).
> 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](http://www.mozilla.org/MPL/)