datadog-ecs-cdk
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

datadog-ecs-cdk

Docs: https://isotoma.github.io/datadog-ecs-cdk/

NPM: https://www.npmjs.com/package/datadog-ecs-cdk

Source: https://github.com/isotoma/datadog-ecs-cdk

EC2 example

import { DatadogEcsDaemonService } from 'datadog-ecs-cdk';

// ...

new DatadogEcsDaemonService(this, 'EcsDatadog', {
    ecsCluster: myCluster,
    datadogApiKeySecret: ecs.Secret.fromSecretsManager(mySecret),
    // By default, when logs are enabled, collects logs from all containers,
    // but not the Datadog agent container itself.
    logs: {
        enabled: true,
    },
});

Fargate example

import { addDatadogToFargateTask } from 'datadog-ecs-cdk';

// ...

const myTaskDef = ...

addDatadogToFargateTask(myTaskDef, {
    datadogApiKeySecret: ecs.Secret.fromSecretsManager(mySecret),
    agent: {
        enabled: true,
        statsd: {
            enabled: true,
        },
    },
    fireLensLogging: {
        enabled: true,
        service: 'myservice',
        source: 'myservice',
    },
});

Package Sidebar

Install

npm i datadog-ecs-cdk

Weekly Downloads

54

Version

1.5.0

License

MIT

Unpacked Size

67.8 kB

Total Files

8

Last publish

Collaborators

  • isotoma-ci