distributed-process-ekg: Collect node stats for EKG

[ bsd3, library, network, system ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0
Change log CHANGELOG.md
Dependencies base (>=4.8 && <5), distributed-process, ekg-core, text, unordered-containers [details]
License BSD-3-Clause
Author
Maintainer Alexander Bondarenko <aenor.realm@gmail.com>
Category System, Network
Source repo head: git clone https://bitbucket.org/dpwiz/distributed-process-ekg
Uploaded by AlexanderBondarenko at 2016-03-10T18:20:02Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1581 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-03-10 [all 1 reports]

Readme for distributed-process-ekg-0.1.1.0

[back to package description]
  1. Register node stats with EKG.

import System.Metrics                    -- ekg-core
import System.Metrics.DistributedProcess -- distributed-process-ekg
import System.Remote.Monitoring.Statsd   -- ekg-statsd

main = do
  -- ... init node

  store <- newStore
  registerGcMetrics store
  registerLocalNodeMetrics node store

  forkStatsd
    defaultStatsdOptions { flushInterval = 15e3 }
    store

  runProcess node procMain
  1. Discover monitor leaks in your code.

screenshot