Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module allows you to periodically push your ekg
metrics to the
Amazon CloudWatch backend. Inspired by the 'ekg-statsd' module.
To use, run forkCloudWatch
with the CloudWatchEnv
and metrics Store
.
- data CloudWatchId
- cloudWatchThreadId :: CloudWatchId -> ThreadId
- forkCloudWatch :: CloudWatchEnv -> Store -> IO CloudWatchId
- data CloudWatchEnv = CloudWatchEnv {
- cweFlushInterval :: !Int
- cweAwsEnv :: !Env
- cweDimensions :: ![Dimension]
- cweNamespace :: !Text
- cweOnError :: !(forall e. Exception e => e -> IO ())
- defaultCloudWatchEnv :: Text -> Env -> CloudWatchEnv
Documentation
data CloudWatchId Source #
The ThreadID
for the CloudWatch
process.
forkCloudWatch :: CloudWatchEnv -> Store -> IO CloudWatchId Source #
Forks a thread to periodically publish metrics to Amazon's CloudWatch
service for the given Store
.
data CloudWatchEnv Source #
The environment for the CloudWatch EKG metric pusher.
CloudWatchEnv | |
|
defaultCloudWatchEnv :: Text -> Env -> CloudWatchEnv Source #
The default CloudWatchEnv
, requiring an Amazon environment and namespace.
Equal to:
CloudWatchEnv
{ cweFlushInterval
= 1000
, cweAwsEnv
= x
, cweNamespace
= namespace
, cweDimensions
= []
, cweOnError
= defaultOnError
}