Skip to content
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

Two-step log collection guideline #27184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aboitreaud
Copy link
Contributor

What does this PR do? What is the motivation?

Add log collection step to DJM on MWAA setup guidelines. The two steps are taken from MWAA integration doc.

Merge instructions

Merge readiness: Not ready for merge, requires a web-ui change for the trace correlation to work.

  • Ready for merge

Merge queue is enabled in this repo. To have it automatically merged after it receives the required reviews, create the PR (from a branch that follows the <yourname>/description naming convention) and then add the following PR comment:

/merge

Additional notes

@aboitreaud aboitreaud requested a review from a team as a code owner January 17, 2025 17:31
@aboitreaud aboitreaud force-pushed the adrien.boitreaud/mwaa-logs-collection branch from 803de2a to 10606b5 Compare January 17, 2025 17:32
Copy link
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@aboitreaud aboitreaud requested a review from warrierr January 17, 2025 18:00
Copy link
Contributor

@warrierr warrierr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor edit to communicate the value more

content/en/data_jobs/airflow.md Outdated Show resolved Hide resolved
Copy link
Contributor

@estherk15 estherk15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few suggestions, but approved! When you're ready to publish, add the /merge comment.

@@ -138,6 +142,8 @@ To get started, follow the instructions below.
[6]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html
[7]: https://app.datadoghq.com/data-jobs/
[8]: https://openlineage.io/docs/integrations/airflow/
[9]: https://docs.aws.amazon.com/mwaa/latest/userguide/monitoring-airflow.html#monitoring-airflow-enable
[10]: https://docs.datadoghq.com/integrations/amazon_web_services/?tab=roledelegation#log-collection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[10]: https://docs.datadoghq.com/integrations/amazon_web_services/?tab=roledelegation#log-collection
[10]: /integrations/amazon_web_services/?tab=roledelegation#log-collection

Comment on lines +133 to +135
4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM by following the steps below:
1. Configure Amazon MWAA to [send logs to CloudWatch][9].
2. [Send the logs to Datadog][10].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could go either way on this suggestion. If this step is confusing and needs to be broken down, leave as is!

Suggested change
4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM by following the steps below:
1. Configure Amazon MWAA to [send logs to CloudWatch][9].
2. [Send the logs to Datadog][10].
4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM by configuring Amazon MWAA to [send logs to CloudWatch][9], then [send the logs to Datadog][10].

@@ -130,6 +130,10 @@ To get started, follow the instructions below.

3. Deploy your updated `requirements.txt` and [Amazon MWAA startup script][3] to your Amazon S3 folder configured for your Amazon MWAA Environment.

4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM by following the steps below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM by following the steps below:
4. Optionally, set up Log Collection for correlating task logs to DAG run executions in DJM:

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