ekg-bosun-1.0.14: Send ekg metrics to a Bosun instance

Safe HaskellNone
LanguageHaskell2010

System.Remote.Monitoring.Bosun

Description

This module lets you periodically flush metrics to a Bosun backend. Example usage:

main = do
  store <- newStore
  forkBosun defaultBosunOptions store

You probably want to include some of the predefined metrics defined in the ekg-core package, by calling e.g. the registerGcMetrics function defined in that package.

Synopsis

Documentation

data BosunOptions Source #

Options to control how to connect to the Bosun server and how often to flush metrics.

Constructors

BosunOptions 

Fields

defaultBosunOptions :: BosunOptions Source #

Defaults:

  • bosunRoot = "http:/127.0.0.1:8070"
  • tags = [("host", hostname)]
  • flushInterval = 10000

forkBosun :: BosunOptions -> Store -> IO ThreadId Source #

Create a thread that periodically flushes the metrics in Store to Bosun.