-
Notifications
You must be signed in to change notification settings - Fork 0
Add /health endpoint for service monitoring #97
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
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
- Created HandlerHealth class with dependency checks for Kafka, EventBridge, and PostgreSQL - Added /health route to lambda_handler - Implemented uptime tracking and status reporting - Added comprehensive tests for healthy and degraded states - Updated OpenAPI spec with /health endpoint documentation Co-authored-by: tmikula-dev <[email protected]>
- Changed all logger.debug() calls to self.logger.debug() - Removed unused global logger initialization - All tests pass, pylint 10.00/10, mypy clean Co-authored-by: tmikula-dev <[email protected]>
|
Trivy has completed a full security repository scan ✅ You can find the analysis results for this PR branch on this overview.
|
oto-macenauer-absa
left a comment
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.
looks good, approved
Overview
Service outages between daily e2e test runs go undetected. This adds a lightweight health endpoint for monitoring system integration and faster alerting.
Release Notes
Related
Closes #90
COPILOT ->
Changes
src/handlers/handler_health.py: NewHandlerHealthclass{"status": "ok", "uptime_seconds": N}when healthy{"status": "degraded", "details": {...}}when dependencies not initializedsrc/event_gate_lambda.py: Registered/healthroute (no auth required)conf/api.yaml: Added OpenAPI spec for/healthendpointtests/handlers/test_handler_health.py: 6 tests covering healthy/degraded states and uptime calculationExample
Release notes
Added
/healthendpoint for service health monitoring and faster outage detectionCloses #90
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.