@hackage ekg-cloudwatch0.0.1.6
An ekg backend for Amazon Cloudwatch
Categories
License
BSD-3-Clause
Maintainer
matt@sellerlabs.com
Links
Versions
Installation
Dependencies (12)
- amazonka >=1.0.0
- amazonka-cloudwatch >=1.0.0
- amazonka-core >=1.0.0
- base >=4.7 && <5
- bytestring
- ekg-core >=0.1 && <1.0 Show all…
Dependents (1)
@hackage/acme-everything
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