feat: Implement four essential monitoring features (#1093 #1089 #1090 #1091) - #1122
Merged
Mosas2000 merged 1 commit intoAug 26, 2026
Conversation
…tellaBridge#1089 StellaBridge#1090 StellaBridge#1091) ## Summary Implement comprehensive backend infrastructure for four major monitoring capabilities: ### Issue StellaBridge#1093: Alert Noise Reduction Recommendations - Analyze alert firing patterns and false positive rates - Generate actionable recommendations to reduce alert fatigue - Support threshold adjustments, alert suppression, and correlation filtering - Track recommendation status and application metrics ### Issue StellaBridge#1089: Soroban Invocation Cost Trends - Record Soroban contract invocation costs with CPU, memory, and network metrics - Compute cost trends across multiple granularities (hourly/daily/weekly/monthly) - Detect cost anomalies with configurable baselines and deviation thresholds - Provide historical cost analysis and p-percentile tracking ### Issue StellaBridge#1090: Ledger Close Delay Alerts - Monitor Stellar ledger closure timing and identify delays - Create alerts for delays exceeding configurable thresholds - Compute delay statistics and detect recurring patterns - Support pattern analysis for time-of-day and burst detection ### Issue StellaBridge#1091: Horizon Cursor Audit History - Maintain comprehensive audit trail for cursor position changes - Track cursor advances, resets, and rollbacks with full provenance - Support cursor reconciliation between local state and Horizon - Implement rollback workflows with severity classification and reprocessing flags ## Implementation Details **Database Migrations:** - 055_alert_noise_reduction.ts: Analysis results and recommendations - 056_soroban_invocation_cost_trends.ts: Invocation costs, trends, and anomalies - 057_ledger_close_delay_alerts.ts: Closure events, alerts, and pattern detection - 058_horizon_cursor_audit_history.ts: Cursor positions, audit logs, rollbacks, and reconciliations **Services:** - alertNoiseReduction.service.ts: Analysis engine with recommendation generation - sorobanInvocationCost.service.ts: Cost tracking and trend computation - ledgerCloseDelay.service.ts: Delay monitoring and pattern detection - horizonCursorAudit.service.ts: Cursor state management and audit trail **API Routes:** - alertNoiseReduction.routes.ts: Analysis CRUD and recommendation lifecycle - sorobanInvocationCost.routes.ts: Invocation recording and trend queries - ledgerCloseDelay.routes.ts: Event recording and statistics computation - horizonCursorAudit.routes.ts: Cursor operations and reconciliation workflows **Route Groups:** - Updated alert-routes.ts to register noise reduction endpoints - Updated analytics-routes.ts to register Soroban cost tracking endpoints - Created operational-monitoring-routes.ts for ledger and cursor endpoints - Registered operational-monitoring-routes in main routes index ## Acceptance Criteria Met ✓ Documented API and persistence contracts with schemas ✓ Failure, retry, authorization, and observability behavior covered ✓ Existing consumers remain compatible with new optional endpoints ✓ Service boundaries follow established patterns (database, service, routes) ✓ Operational documentation via schema definitions and error handling Closes StellaBridge#1093, Closes StellaBridge#1089, Closes StellaBridge#1090, Closes StellaBridge#1091.
|
@Akanimoh12 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Perfect work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements comprehensive backend infrastructure for four major monitoring capabilities.
Issue #1093: Alert Noise Reduction Recommendations
Issue #1089: Soroban Invocation Cost Trends
Issue #1090: Ledger Close Delay Alerts
Issue #1091: Horizon Cursor Audit History
Database Migrations
Services
API Routes
Closes #1093 Closes #1089 Closes #1090 Closes #1091