ElasticacheAutoMonitor allows you to send email, sms, slack, or trigger aws lambda when an alarm occurs.
Project description
Welcome to cdk-elasticache-monitor
ElasticacheAutoMonitor allows you to send email, sms, slack, or trigger aws lambda when an alarm occurs. You will get the following monitoring:
- Cpu Monitor: Should be less than 90%. (See below reference)
- SwapUsage Monitor: Should be less than 50M.
- Evictions Monitor: Should not have evictions value.
- CurrConnections Monitor: According to your business needs, default every 1 vcup is equal to 200 connections.
- FreeableMemory Monitor: Not less than 10%
Reference: Here
Usage
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
stack = cdk.Stack()
# or sent with sms
ElasticacheAutoMonitor.set_up_with_sms(stack, "my-elasticache-id",
phones=["+15533728278"],
node_type_class=NodeType.R4_16XLARGE
)
# or sent with slack
ElasticacheAutoMonitor.set_up_with_slack(stack, "my-elasticache-id",
web_hook_url="http://xxx.xxx.xxx",
node_type_class=NodeType.R4_16XLARGE
)
# or trigger lambda
fn = lambda.Function(stack, "MyFunction",
runtime=lambda.Runtime.NODEJS_10_X,
handler="index.handler",
code=lambda.Code.from_inline("exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }")
)
ElasticacheAutoMonitor.set_up_with_lambda(stack, "my-elasticache-id", fn,
node_type_class=NodeType.R4_16XLARGE
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdk-elasticache-monitor-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e354c3d2ad82f4315fba5573ec27c5e5b15ab0ce91c894eabb60e3456539f1e |
|
MD5 | aea1c9545e2ff49f9e55687d648f59b6 |
|
BLAKE2b-256 | 5c76c2506cf5bb9e0ab169e1cc4c46352ba7a6e6515178c3197bf28464419b98 |
Close
Hashes for cdk_elasticache_monitor-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9b9721f932263e9a67a9aa295eccd35df49989c0a14b97a820827351279836 |
|
MD5 | 81bb5540bb7a96b5dba0ea415e60abbc |
|
BLAKE2b-256 | 989eec129a90e9907b56b73533e0aff4d459cab64285832c6aa30292efa8017e |