-
Notifications
You must be signed in to change notification settings - Fork 395
AWS Forwarder v5 #1010
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
AWS Forwarder v5 #1010
Conversation
…gainst JSON, now only log message (#996) * refactor(aws)!: AWSX-1703 Change matching of regex. Previously done against JSON, now only on log Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! refactor(aws)!: AWSX-1703 Change matching of regex. Previously done against JSON, now only on log Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
…ation (#1007) Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
…1006) * feat(aws): AWSX-1566 Adding storage tag HTTP header Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * feat(aws): AWSX-1566 Adding new variable in the cloudformation template Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * feat: AWSX-1566 Restoring fetch in the integration test to see metrics Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! feat: AWSX-1566 Restoring fetch in the integration test to see metrics Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * docs(aws): AWSX-1566 Refine documentation around the new variable Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
…udformation and code Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
* feat: Add a changelog for the v5 Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! feat: Add a changelog for the v5 Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * Update aws/logs_monitoring/CHANGELOG.md Co-authored-by: Raphaël Allier <118757729+RaphaelAllier@users.noreply.github.com> * fixup! Update aws/logs_monitoring/CHANGELOG.md Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> Co-authored-by: Raphaël Allier <118757729+RaphaelAllier@users.noreply.github.com>
aws/logs_monitoring/CHANGELOG.md
Outdated
|
|
||
| ### Overview | ||
|
|
||
| Version 5.0.0 of the Datadog Lambda Forwarder introduces several breaking changes that remove deprecated features and improve log filtering behavior. This release introduces a new way to enrich your logs with tags that will reduce AWS Lambda related cost (S3, KMS and Lambda). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: prefer to remove you, yours, and just use abstracts i.e. new way to enrich logs
aws/logs_monitoring/CHANGELOG.md
Outdated
|
|
||
| **Migration Required:** | ||
|
|
||
| - **Review and update your filtering regex patterns** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same
|
|
||
| - Removed the `DD_USE_TCP` / `DdUseTcp` environment variable and parameter | ||
| - Deleted the TCP client implementation | ||
| - All logs now **must** be sent via HTTP/HTTPS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TCP (transport) doesn't relate to HTTP/HTTPs (application) maybe we should also clarify that logs are sent to a different intake as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a different intake than the direct TCP intake yes, but it was an internal configuration depending on the DD_SITE and it was not configurable.
aws/logs_monitoring/CHANGELOG.md
Outdated
| **Migration Required:** | ||
|
|
||
| - Remove any configuration setting `DD_USE_TCP=true` or `DdUseTcp=true` | ||
| - The forwarder will now exclusively use HTTP transport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: HTTP intake (endpoint) instead of transport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to HTTP Protocol
aws/logs_monitoring/CHANGELOG.md
Outdated
| aws lambda get-function-configuration --function-name "<YOUR_FORWARDER>" --query 'Environment.Variables.DD_USE_TCP' | ||
| ``` | ||
|
|
||
| 2. **Verify you're not using the deprecated PrivateLink variable:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 2. **Verify you're not using the deprecated PrivateLink variable:** | |
| 2. **Verify that deprecated PrivateLink variable is not used:** |
aws/logs_monitoring/CHANGELOG.md
Outdated
|
|
||
| **Migration Required:** | ||
|
|
||
| - **Review and update your filtering regex patterns** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - **Review and update your filtering regex patterns** | |
| - **Review and update filtering regex patterns** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, some comments on the change-log
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
* feat: Add link to the changelog in the read toe reflect the documentation The readme is feeding this page https://docs.datadoghq.com/logs/guide/forwarder/?tab=cloudformation Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! feat: Add link to the changelog in the read toe reflect the documentation Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
* refactor: Improve error handling for exception Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! refactor: Improve error handling for exception Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> * fixup! refactor: Improve error handling for exception Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com> --------- Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
| "Encountered an error while trying to parse and submit enhanced metrics for log %s", | ||
| except Exception as e: | ||
| logger.error( | ||
| "Encountered an error while trying to parse and submit enhanced metrics for log %s: %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we could use the same formatted string approach that's used every where else
Co-authored-by: Georgi <georgi.ajaeiya@datadoghq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
What does this PR do?
Motivation
Testing Guidelines
Additional Notes
Types of changes
Check all that apply