How gopi-yenduru/devops-incident-response-agent works
DevOps Incident Agent ingests application logs, persists them, analyzes incidents through a five-stage agent graph, and presents incidents and analytics in a React dashboard. Its response stage can create GitHub issues or fix PRs and send Telegram or Slack alerts. The graph preserves the documented correlation, feedback, webhook-security, and auto-resolution capabilities; unsampled subsystem links are included only where the README or source index supports them.
Main entry points: graph.py Agent Graph · database.py Database · logs.py Log Ingestion · client.js API Client
Components 26
Ingestion and API
- FastAPI Application
backend/main.py - App Registration
backend/routers/apps.py - Log Ingestion
backend/routers/logs.py - Webhook Security
backend/security.py - Log Monitor
backend/services/log_monitor.py
Incident Analysis
- Agent Graph
backend/agents/graph.py - Anomaly Detection
backend/agents/anomaly_detector.py - Incident Correlation
backend/agents/incident_correlator.py - Root Cause Analysis
backend/agents/root_cause_analyzer.py - Fix Suggestions
backend/agents/fix_suggestion.py
State and Metrics
- Database
backend/database.py - Incident and App Models
backend/models/incident.py - Incident Management
backend/routers/incidents.py - Analytics API
backend/routers/analytics.py
Response Integrations
- Response Orchestration
backend/agents/response_orchestrator.py - GitHub Issues and PRs
backend/services/github_service.py - Telegram Alerts
backend/services/telegram_service.py - Slack Alerts
backend/services/slack_service.py
Dashboard
- React App
frontend/src/App.jsx - API Client
frontend/src/api/client.js - Live Dashboard
frontend/src/pages/Dashboard.jsx - Incident Detail
frontend/src/pages/IncidentDetail.jsx - Analytics View
frontend/src/pages/Analytics.jsx - Accuracy Feedback
frontend/src/components/AccuracyFeedback.jsx
Other components
- Operator
- Application Logs
Connections 38
- Operator → React App: views
frontend/src/App.jsx - Application Logs → Log Ingestion: submits logs
README.md - Application Logs → Log Ingestion: sends signed webhook
README.md - FastAPI Application → App Registration: routes requests
backend/main.py - FastAPI Application → Log Ingestion: routes requests
backend/main.py - FastAPI Application → Incident Management: routes requests
backend/main.py - FastAPI Application → Analytics API: routes requests
backend/main.py - FastAPI Application → Log Monitor: starts monitor
backend/main.py - Log Ingestion → Webhook Security: validates keys
backend/routers/logs.py - Log Ingestion → Database: stores logs
backend/routers/logs.py - Log Ingestion → Agent Graph: queues analysis
backend/routers/logs.py - Log Monitor → Agent Graph: runs analysis
backend/services/log_monitor.py - Agent Graph → Anomaly Detection: dispatches
backend/agents/graph.py - Agent Graph → Incident Correlation: dispatches
backend/agents/graph.py - Agent Graph → Root Cause Analysis: dispatches
backend/agents/graph.py - Agent Graph → Fix Suggestions: dispatches
backend/agents/graph.py - Agent Graph → Response Orchestration: dispatches
backend/agents/graph.py - Agent Graph → Database: reads history
backend/agents/graph.py - Agent Graph → Database: stores results
backend/agents/graph.py - Database → Incident and App Models: maps records
backend/database.py - App Registration → Database: reads and writes
backend/routers/apps.py - Incident Management → Database: reads and updates
backend/routers/incidents.py - Analytics API → Database: queries metrics
backend/routers/analytics.py - Log Monitor → Database: checks recurrence
backend/services/log_monitor.py - Response Orchestration → GitHub Issues and PRs: creates issues
backend/agents/response_orchestrator.py - Response Orchestration → GitHub Issues and PRs: creates fix PRs
backend/agents/response_orchestrator.py - Response Orchestration → Telegram Alerts: sends alerts
backend/agents/response_orchestrator.py - Response Orchestration → Slack Alerts: sends alerts
backend/agents/response_orchestrator.py - React App → Live Dashboard: renders
frontend/src/App.jsx - React App → Incident Detail: renders
frontend/src/App.jsx - React App → Analytics View: renders
frontend/src/App.jsx - Live Dashboard → API Client: requests data
frontend/src/pages/Dashboard.jsx - Incident Detail → API Client: requests incident
frontend/src/pages/IncidentDetail.jsx - Incident Detail → Accuracy Feedback: renders
frontend/src/pages/IncidentDetail.jsx - Accuracy Feedback → API Client: submits rating
frontend/src/components/AccuracyFeedback.jsx - Analytics View → API Client: requests metrics
frontend/src/pages/Analytics.jsx - API Client → Incident Management: calls endpoints
frontend/src/api/client.js - API Client → Analytics API: calls endpoints
frontend/src/api/client.js