How vaishalisaini-tech/ai-sre-platform works
AI-SRE Platform closes an incident-response loop: Kubernetes workload events, Alertmanager telemetry, or a dashboard-submitted incident enter FastAPI; a LangGraph workflow retrieves a runbook, asks Gemini for a diagnosis, and selects a guarded remediation. Results are logged for the dashboard and, on the execution path, announced to Slack. The README also documents Prometheus/Grafana observability and least-privilege Kubernetes access. Workflow edges are grounded in shown calls or README statements; watcher, monitoring, and some integrations were not sampled, so uncertain links are omitted.
Main entry points: main.py FastAPI Entry Points · graph.py LangGraph Workflow · database.py Incident Logging & History · embeddings.py Gemini Embeddings
Components 20
Detection Signals
- Kubernetes Events
- Pod Watcher
backend/app/watcher.py - Prometheus & Alertmanager
k8s/monitoring - Alert Payload Model
backend/app/models/alerts.py - Grafana & Metrics Exporters
k8s/monitoring
Reasoning & Remediation
- FastAPI Entry Points
backend/app/main.py - API Key Guard
backend/app/auth.py - LangGraph Workflow
backend/app/agent/graph.py - Runbook Retrieval
backend/app/database.py - Gemini Embeddings
backend/app/embeddings.py - Gemini Diagnosis
- Kubernetes Actions
backend/app/k8s_actions.py
Incident State
- PostgreSQL pgvector
- Incident Logging & History
backend/app/database.py - Runbook Seeding
backend/app/seed_runbooks.py
Operator Experience
- Incident Dashboard
frontend/src/App.jsx - Dashboard API Client
frontend/src/api.js
Other components
- SRE Operator
- Kubernetes API
- Slack Notifications
Connections 24
- SRE Operator → Incident Dashboard: submits incident
frontend/src/App.jsx - Incident Dashboard → Dashboard API Client: calls client
frontend/src/App.jsx - Dashboard API Client → FastAPI Entry Points: requests incidents
- FastAPI Entry Points → API Key Guard: guards submission
backend/app/main.py - FastAPI Entry Points → LangGraph Workflow: invokes workflow
backend/app/main.py - FastAPI Entry Points → Incident Logging & History: logs result
backend/app/main.py - FastAPI Entry Points → Incident Logging & History: loads history
backend/app/main.py - Prometheus & Alertmanager → Alert Payload Model: sends webhook
README.md - Alert Payload Model → FastAPI Entry Points: payload accepted
backend/app/main.py - Kubernetes Events → Pod Watcher: reports failures
README.md - Pod Watcher → LangGraph Workflow: submits incidents
README.md - LangGraph Workflow → Runbook Retrieval: searches runbooks
backend/app/agent/graph.py - Runbook Retrieval → Gemini Embeddings: embeds query
backend/app/database.py - Runbook Retrieval → PostgreSQL pgvector: queries vectors
README.md - LangGraph Workflow → Gemini Diagnosis: requests diagnosis
backend/app/agent/graph.py - Gemini Embeddings → Gemini Diagnosis: requests vectors
- Runbook Seeding → Gemini Embeddings: embeds runbooks
backend/app/seed_runbooks.py - Runbook Seeding → PostgreSQL pgvector: inserts runbooks
backend/app/seed_runbooks.py - Incident Logging & History → PostgreSQL pgvector: reads and writes
backend/app/database.py - LangGraph Workflow → Kubernetes Actions: executes remediation
backend/app/agent/graph.py - Kubernetes Actions → Kubernetes API: patches deployments
backend/app/k8s_actions.py - LangGraph Workflow → Slack Notifications: announces action
backend/app/agent/graph.py - Incident Logging & History → Incident Dashboard: serves history
README.md - Grafana & Metrics Exporters → Prometheus & Alertmanager: provides metrics
README.md