Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.
/ ekg-log Public archive

Wrapper around the Haskell Ekg library to produce JSON documents on the filesystem.

License

Notifications You must be signed in to change notification settings

ixmatus/ekg-log

Repository files navigation

Welcome!

This library lets you send metrics gathered by the ekg family of packages (e.g. ekg-core and ekg) to a log for reading via a service plugin like Server Density, piping to a pub/sub queue, or whatever you want.

Getting started

Exporting metrics to a log is simple, create an empty metric store and register some metrics:

import System.Metrics
import System.Local.Monitoring.Log

main = do
    store <- newStore
    registerGcMetrics store
    forkEkgLog defaultLogOptions store
    ...

forkEkgLog starts a new thread that periodically appends your metrics to a specified log file.

About

Wrapper around the Haskell Ekg library to produce JSON documents on the filesystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published