How devanshgupta11/aira works
AIRA is an incident-triage layer over an OpenTelemetry microservices demo and its monitoring stack. A fault in the demo produces telemetry; Prometheus evaluates AIRA alert rules and Alertmanager posts alerts to the FastAPI backend. The backend stores incidents, collects live Prometheus evidence, runs an evidence-grounded Ollama/CrewAI triage agent, and serves a console. The README also documents fault injection and the monitoring integrations. Backend call edges are supported by the source excerpts; monitoring and console relationships are documented in the README. Infrastructure internals were not sampled.
Main entry points: main.py FastAPI backend · inject-fault.ps1 Fault controls · alertmanager.yml Alertmanager · prometheus_tool.py Metrics evidence
Components 15
Monitoring and alerts
- Demo services
- Fault controls
scripts/inject-fault.ps1 - OTel Collector
- Prometheus
- AIRA alert rules
infra/alert-rules.yml - Alertmanager
infra/alertmanager/alertmanager.yml
Incident backend
- FastAPI backend
backend/app/main.py - Runtime settings
backend/app/config.py - Incident storage
backend/app/db.py
Evidence and triage
- Metrics evidence
backend/app/prometheus_tool.py - Triage agent
backend/app/triage_agent.py - Ollama model
Incident console
- Incident console
backend/app/static/index.html
Other components
- Fault operator
- Console user
Connections 15
- Fault operator → Fault controls: injects faults
README.md - Fault controls → Demo services: changes flags
README.md - Demo services → OTel Collector: sends telemetry
README.md - OTel Collector → Prometheus: exports metrics
README.md - AIRA alert rules → Prometheus: defines alerts
README.md - Prometheus → Alertmanager: forwards alerts
README.md - Alertmanager → FastAPI backend: posts webhook
README.md - FastAPI backend → Incident storage: stores alerts
backend/app/main.py - FastAPI backend → Metrics evidence: collects metrics
backend/app/main.py - Metrics evidence → Prometheus: queries metrics
README.md - FastAPI backend → Triage agent: runs triage
backend/app/main.py - Triage agent → Ollama model: prompts model
README.md - FastAPI backend → Incident console: serves page
backend/app/main.py - Console user → Incident console: views incidents
README.md - Runtime settings → FastAPI backend: configures runtime
backend/app/main.py