ekg-cloudwatch-0.0.1.6: An ekg backend for Amazon Cloudwatch

Safe HaskellNone
LanguageHaskell2010

System.Remote.Monitoring.CloudWatch

Description

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.

Synopsis

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.

Constructors

CloudWatchEnv 

Fields

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 }