MWAA - Sentry Integration

1

Hey,

We had our Airflow system setup with Sentry monitoring before migrating to MWAA, we would like to keep using Sentry for critical errors along with Cloudwatch for usual logs. We added the Sentry requirement to requirements.txt and also added the configurations as in the airflow documentation: sentry.sentry_on=True sentry.sentry_dsn=<OUR_SENTRY_DSN>

When we update our system with these configurations ( we were able to get some alerts from MWAA in Sentry ), but after a while we stop getting them and we get a update failed message ' Update failed' (INCORRECT_CONFIGURATION).

Does anyone have a hint on what's happening? Why we get alerts for a while and then stop getting them and update fails? This should be a quick and simple integration.

Best Regards

2개 답변
1

MWAA does not currently install requirements on the web server which may be causing the creation failure when the web server tries to communicate with Sentry.

AWS
John_J
답변함 2년 전
  • The referenced docs claim that MWAA v2.2.2+ will install requirements such as Sentry on the web server. Unfortunately we have observed that this issue persists on v2.2.2. When can we expect Sentry configuration to be functional in MWAA?

  • Note the above was true as of Airflow 2.0.2 support. As of Airflow 2.2.2, requirements are installed on the web server. Note that if the libraries are required on a private web server you will need to package them as WHL files

0
수락된 답변

We confirm Sentry works in MWAA v2.2.2, these are the steps to get it working:

First add Sentry to your requirements.txt file:

apache-airflow[sentry]==2.2.2

Then set in your MWAA Configuration options:

sentry.sentry_on  True
sentry.sentry_dsn  <YOUR_SENTRY_DSN>
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠