- Newest
- Most votes
- Most comments
Based on your setup with a Python Flask application running on Windows EC2 behind an Application Load Balancer (ALB), there are a few potential reasons why CloudWatch Application Signals might not be showing your requests.
If you're using a WSGI server like Gunicorn or uWSGI with your Flask application, you'll need to make additional configuration changes to make the AWS Distro for OpenTelemetry (ADOT) Python auto-instrumentation work properly. The standard auto-instrumentation might not capture the requests correctly in this case.
Another possibility is related to how the requests are being processed. Since your requests are coming from Heroku through an ALB before reaching your EC2 instance, there might be connection issues at the HTTP/SSL layer. If the ALB is accepting TCP connections but failing to complete the HTTP/HTTPS request processing, this could prevent Application Signals from capturing the requests properly.
To troubleshoot this issue:
- Check if you're using a WSGI server and make the necessary configuration adjustments.
- Verify that the ALB is properly processing the requests (check metrics like RequestCount in CloudWatch).
- Ensure that your security groups and network configurations allow proper traffic flow.
- Confirm that Application Signals is properly enabled and the required environment variables are set correctly.
CloudWatch Application Signals should work with your setup as it's designed to monitor applications across various deployment architectures, including those behind load balancers. The auto-instrumentation adds the necessary telemetry collection without requiring code changes, but the specific environment might need additional configuration.
Sources
Troubleshooting your Application Signals installation - Amazon CloudWatch
ALB Connections Accepted but No Requests Processed – HTTPS Hangs (RequestCount = 0) | AWS re:Post
Monitor application performance with Amazon CloudWatch Application Signals - AWS Lambda
answered a year ago
Relevant content
asked 2 years ago
asked 3 years ago
