AWS CDK Datadog Resources

An AWS CDK construct library that wraps DataDog/datadog-cloudformation-resources.
Requirements
Before using this library, register datadog-cloudformation-resources to your AWS account.
You need to register the correct version listed in Supported Resources
.
Supported CDK Languages
- TypeScript
Python. Not currently supported
Java Sorry, there is a problem with the release. (#22)
Supported Resources
Installation
TypeScript
npm install @goodnotes-oss/cdk-datadog-resources
Usage
Below are examples of TypeScript. Credentials are not required because that is configured at CFN extension level Check requirements
Monitors
import { DatadogMonitor } from '@goodnotes-oss/cdk-datadog-resources';
new DatadogMonitor(yourStack, 'TestMonitor', {
query: 'avg(last_1h):sum:system.cpu.system{host:host0} > 100',
type: MonitorType.QUERY_ALERT,
name: 'Test Monitor',
options: {
thresholds: {
critical: 100,
warning: 80,
oK: 90,
},
notifyNoData: true,
evaluationDelay: 60,
},
});
Fork
This is a fork of https://github.com/NomadBlacky/cdk-datadog-resources, which is currently unmaintained.
Notes