Skip to main content

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

cdk-elasticache-monitor-0.0.13.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

cdk_elasticache_monitor-0.0.13-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file cdk-elasticache-monitor-0.0.13.tar.gz.

File metadata

  • Download URL: cdk-elasticache-monitor-0.0.13.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for cdk-elasticache-monitor-0.0.13.tar.gz
Algorithm Hash digest
SHA256 46c63b29b8cd98cd48b04e3389af2b601b7bca57c3333f98be22eab4162d84a9
MD5 444702da2018b8601a5411a423a7dbda
BLAKE2b-256 9bfda3fbdb486191640652163a2cc0672fd006ec599545445d096d4b61694ef1

See more details on using hashes here.

File details

Details for the file cdk_elasticache_monitor-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: cdk_elasticache_monitor-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for cdk_elasticache_monitor-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 13c276a5c90ab4a2cd6ca8ba5e68a2536c7a861c8241324cfae8ed784617cf09
MD5 969c280f638d954176ef621415b56224
BLAKE2b-256 0b5e6a79438562783a0d8fdfb92fcaf40b19df277c41d1b18867e3f21e42676e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page