Skip to content

Submit custom metrics via CloudWatch Logs #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

tianchu
Copy link
Collaborator

@tianchu tianchu commented May 31, 2019

What does this PR do?

Allow custom metrics to be submitted to CloudWatch Logs, and then be forwarded by Datadog log forwarder. This option can be enabled by setting environment variable DATADOG_FLUSH_TO_LOG to True.

Motivation

Writting metrics to logs rather than sending to Datadog metric intake endpoint helps avoid adding latencies to the Lambda executions.

Testing Guidelines

Upgrade to the latest version of datadog lambda layer and log forwarder.

@tianchu tianchu force-pushed the tian.chu/flush-metric-to-log branch from e4a78d4 to e9beec4 Compare May 31, 2019 21:26
@pinkerton
Copy link
Contributor

Can you update the README with a sentence or two on how to use this?

@tianchu tianchu force-pushed the tian.chu/flush-metric-to-log branch 4 times, most recently from 3f94678 to f22002e Compare June 3, 2019 22:11
@tianchu tianchu force-pushed the tian.chu/flush-metric-to-log branch from 1815f84 to 123fc69 Compare June 10, 2019 15:51
@tianchu tianchu merged commit 9846c96 into master Jun 10, 2019
@tianchu tianchu deleted the tian.chu/flush-metric-to-log branch June 10, 2019 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants