Coder Social home page Coder Social logo

ekg-statsd's Introduction

ekg-statsd: statsd backend for ekg Hackage version Build Status

This library lets you send metrics gathered by the ekg family of packages (e.g. ekg-core and ekg) to statsd. While statsd fulfills a very similar role to ekg, it supports many more backends/graphing systems (e.g. Graphite). By sending your metrics to statsd, you can have your ekg metrics appear in these systems.

Getting started

Exporting metrics to statsd is simple. Either create an empty metric store and register some metrics

import System.Metrics
import System.Remote.Monitoring.Statsd

main = do
    store <- newStore
    registerGcMetrics store
    forkStatsd defaultStatsdOptions store
    ...

or use the default metrics and metric store provided by the ekg package

import System.Remote.Monitoring
import System.Remote.Monitoring.Statsd

main = do
    handle <- forkServer "localhost" 8000
    forkStatsd defaultStatsdOptions (serverMetricStore handle)
    ...

forkStatsd starts a new thread the will periodically send your metrics to statsd using UDP.

Get involved!

Please report bugs via the GitHub issue tracker.

Master git repository:

git clone https://github.com/tibbe/ekg-statsd.git

Authors

This library is written and maintained by Johan Tibell, [email protected].

ekg-statsd's People

Contributors

tibbe avatar 23skidoo avatar davecturner avatar awjchen avatar tswelsh avatar ejconlon avatar paf31 avatar hesiod avatar bergmark avatar adinapoli-iohk avatar hesselink avatar roberth avatar tfausak avatar gabriella439 avatar naveenaidu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.