Skip to content

GoodNotes/cdk-datadog-resources

Repository files navigation

AWS CDK Datadog Resources

npm version

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

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

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