Watching your CDK apps since 2019
Project description
cdk-watchful
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:
- Amazon DynamoDB
- AWS Lambda
- Request yours
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
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c431ea74a2eb921e898de2e894d6eff111261c4090bfccadf8e3fccafe418620
|
|
| MD5 |
43aaec9209c6a9862048456571b1073c
|
|
| BLAKE2b-256 |
7ad1d02871af9b05dbd6fa4818ba2342235f3283b87f4791a4daecf536bb8e8c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
859cd4bc838964a951dfe440f81e405bfa5c18ac08d26a960b1eff0973907bc5
|
|
| MD5 |
36084417f00690a7d4f1789366a0c968
|
|
| BLAKE2b-256 |
56ff66d4bb62116f3365d16f929476d12a1d7f067bb4018855b531868818d54d
|