| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- 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.
Constructors
| BosunOptions | |
Instances
| Eq BosunOptions Source # | |
Defined in System.Remote.Monitoring.Bosun | |
| Show BosunOptions Source # | |
Defined in System.Remote.Monitoring.Bosun Methods showsPrec :: Int -> BosunOptions -> ShowS # show :: BosunOptions -> String # showList :: [BosunOptions] -> ShowS # | |
defaultBosunOptions :: BosunOptions Source #
Defaults:
bosunRoot="http:/127.0.0.1:8070"tags=[("host", hostname)]flushInterval=10000