An AWS CDK construct library that wraps DataDog/datadog-cloudformation-resources.
Before using this library, register datadog-cloudformation-resources to your AWS account.
You need to register the correct version listed in Supported Resources
.
- TypeScript
Python. Not currently supportedJavaSorry, there is a problem with the release. (#22)
Supported? | Resource | Datadog CF Resource Name | Description | Datadog CF Version |
---|---|---|---|---|
✅ | Dashboards | Datadog::Dashboards::Dashboard |
Create, update, and delete Datadog dashboards. | 2.1.0 |
✅ | Monitors | Datadog::Monitors::Monitor |
Create, update, and delete Datadog monitors. | 4.6.0 |
✅ | SLOs | Datadog::SLOs::SLO |
Create, update, and delete Datadog SLOs. | 1.1.0 |
TypeScript
npm install @goodnotes-oss/cdk-datadog-resources
Below are examples of TypeScript. Credentials are not required because that is configured at CFN extension level Check requirements
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,
},
});
This is a fork of https://github.com/NomadBlacky/cdk-datadog-resources, which is currently unmaintained.
- The DataDog Dashboard TypeScript Interface was generated from the DataDog/datadog-api-client-typescript package through GoodNotes/ts-interface-generator. It is currently inlined while this setup is PoC.