BSD-3-Clause licensed by Matt Parsons
Maintained by matt@sellerlabs.com
This version can be pinned in stack with:ekg-cloudwatch-0.0.1.6@sha256:2d25a79e8d8356002c36cb3324a5b2bd0ea85d9d1d803e8e4ed839d03a28112a,1238

Module documentation for 0.0.1.6

ekg-cloudwatch

Register a thread, and suddenly all your [ekg][ekg] metrics get pushed to Amazon CloudWatch. Neat!

Inspired (and copied) from the [ekg-statsd][ekg-statsd] package.

Usage:

Pass your EKG Store and the Amazonka Env to the function:

import System.Metrics as EKG
import Network.AWS    as AWS

register :: EKG.Store -> AWS.Env -> IO CloudWatchId
register store env =
  forkCloudWatch
    (defaultCloudWatchEnv "MyApplication" env)
    store

Changes

CHANGELOG

Upcoming…

v0.0.1.6

  • Fix a bug where batched metrics would send an empty list to the server. This causes the service to respond with an error.

v0.0.1.5

  • Batch metric requests to Cloudwatch, resulting in cheaper operations.