Safe Haskell | None |
---|
This module lets you periodically flush metrics to a Graphite Carbon backend. Example usage:
main = do store <- newStore forkCarbon defaultCarbonOptions 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 CarbonOptions = CarbonOptions {}
- defaultCarbonOptions :: CarbonOptions
- forkCarbon :: CarbonOptions -> Store -> IO ThreadId
Documentation
data CarbonOptions Source
Options to control how to connect to the Carbon server and how often to flush metrics. The flush interval should match the shortest retention rate of the matching retention periods, or you risk over-riding previous samples.
CarbonOptions | |
|
forkCarbon :: CarbonOptions -> Store -> IO ThreadIdSource
Create a thread that periodically flushes the metrics in Store
to
Carbon.