Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 805 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 805 Bytes

S3 event to Datadog Lambda Function

This Boot project builds instances of a node.js Lambda function for sending S3 events to Datadog.

Usage

Create an instance of the function:

boot build -k DATADOG_API_KEY -a DATADOG_APP_KEY -n somename
  • DATADOG_API_KEY is the Datadog API key for the account.
  • DATADOG_APP_KEY is a key identifying this particular application.
  • somename is the name of the metric to report. created and removed metrics are reported for every S3 event. The metrics for this application instance will be:
    1. s3lambda.somename.created
    2. s3lambda.somename.created.bytes
    3. s3lambda.somename.removed

Then, deploy the zip file in target/ to Amazon.

Finally, in the S3 interface, wire events to the deployed lambda function.