Skip to main content

Watching your CDK apps since 2019

Project description

cdk-watchful

CircleCI python typescript

Watching your CDK back since 2019

Watchful is an AWS CDK construct library that makes it easy to monitor CDK apps.

TypeScript:

import { Watchful } from 'cdk-watchful'

const wf = new Watchful(this, 'watchful');
wf.watchDynamoTable('My Cute Little Table', myTable);
wf.watchLambdaFunction('My Function', myFunction);

Python:

from cdk_watchful import Watchful

wf = Watchful(self, 'watchful')
wf.watch_dynamo_table('My Cute Little Table', my_table)
wf.watch_lambda_function('My Function', my_function)

And...

Install

TypeScript/JavaScript:

$ npm install cdk-watchful

Python:

$ pip install cdk-watchful

Initialize

To get started, just define a Watchful construct in your CDK app (code is in TypeScript, but python will work too):

TypeScript:

import Watchful from 'cdk-watchful';

const wf = new Watchful(this, 'watchful', {
  alarmEmail: 'your@email.com'
});

Python:

from cdk_watchful import Watchful

wf = Watchful(self, 'watchful', alarm_email='your@amil.com')

Add Resources

Watchful manages a central dashboard and configures default alarming for:

TypeScript:

wf.watchDynamoTable('My Happy Little Table', littleTable);
wf.watchDynamoTable('My Very Happy Table', veryHappyTable);
wf.watchLambdaFunction('The Function', fn);

Python:

wf.watch_dynamo_table('My Happy Little Table', table)
wf.watch_lambda_function('Handler1', handler1)
wf.watch_lambda_function('Handler2', handler2)

Watching Scopes

Watchful can also watch complete CDK construct scopes. It will automatically discover all watchable resources within that scope (recursively), add them to your dashboard and configure alarms for them.

TypeScript:

wf.watchScope(storageLayer);

Python:

wf.watch_scope(storage_layer)

Example

See a more complete example.

License

Apache 2.0

Project details


Release history Release notifications | RSS feed

This version

0.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-watchful-0.2.2.tar.gz (126.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_watchful-0.2.2-py3-none-any.whl (123.9 kB view details)

Uploaded Python 3

File details

Details for the file cdk-watchful-0.2.2.tar.gz.

File metadata

  • Download URL: cdk-watchful-0.2.2.tar.gz
  • Upload date:
  • Size: 126.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for cdk-watchful-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c431ea74a2eb921e898de2e894d6eff111261c4090bfccadf8e3fccafe418620
MD5 43aaec9209c6a9862048456571b1073c
BLAKE2b-256 7ad1d02871af9b05dbd6fa4818ba2342235f3283b87f4791a4daecf536bb8e8c

See more details on using hashes here.

File details

Details for the file cdk_watchful-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: cdk_watchful-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 123.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for cdk_watchful-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 859cd4bc838964a951dfe440f81e405bfa5c18ac08d26a960b1eff0973907bc5
MD5 36084417f00690a7d4f1789366a0c968
BLAKE2b-256 56ff66d4bb62116f3365d16f929476d12a1d7f067bb4018855b531868818d54d

See more details on using hashes here.

Supported by

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