Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- data BosunOptions = BosunOptions {}
- defaultBosunOptions :: BosunOptions
- forkBosun :: BosunOptions -> Store -> IO ThreadId
Documentation
data BosunOptions Source #
Options to control how to connect to the Bosun server and how often to flush metrics.
defaultBosunOptions :: BosunOptions Source #
Defaults:
bosunRoot
="http:/127.0.0.1:8070"
tags
=[("host", hostname)]
flushInterval
=10000