How mdrcs/agenticai-sre works
AgenticAI-SRE combines autonomous incident investigation with canary-release decisions, alongside a Flask health endpoint that exposes request-status metrics. The incident workflow triages Prometheus data and passes it to root-cause analysis; the release workflow applies a canary, probes health, and chooses whether to retain or remove it. Phoenix traces agent activity, while Ollama supplies the LLM. The release source names manifest paths that do not match the checked-in Kub8 filenames, so the manifest relationship is shown at the directory level. Connections are limited to those supported by the excerpts or README.
Main entry points: agentic_sre.py Incident Runner · agentic_release.py Release Manager · app.py Health Endpoint · Kub8 Kubernetes Manifests
Components 16
Health Service
- Health Endpoint
app.py - Request Metrics
app.py
Incident Response
- Incident Runner
agentic_sre.py - Metric Triage
agentic_sre.py - Prometheus Query Tool
agentic_sre.py - Root Cause Analysis
agentic_sre.py
Canary Release
- Rollout Runner
agentic_release.py - Release Manager
agentic_release.py - Manifest Tool
agentic_release.py - Health Probe Tool
agentic_release.py - Kubernetes Manifests
Kub8
Agent Observability
- Phoenix Tracing
Other components
- Incident Alert
- Prometheus
- Kubernetes Cluster
- Ollama LLM
Connections 17
- Incident Alert → Incident Runner: provides alert
agentic_sre.py - Incident Runner → Metric Triage: starts workflow
agentic_sre.py - Metric Triage → Prometheus Query Tool: queries metrics
agentic_sre.py - Prometheus Query Tool → Prometheus: sends PromQL
agentic_sre.py - Prometheus → Request Metrics: reads counters
README.md - Metric Triage → Root Cause Analysis: provides context
agentic_sre.py - Incident Runner → Ollama LLM: configures model
agentic_sre.py - Rollout Runner → Release Manager: starts rollout
agentic_release.py - Release Manager → Ollama LLM: configures model
agentic_release.py - Release Manager → Manifest Tool: uses tool
agentic_release.py - Release Manager → Health Probe Tool: uses tool
agentic_release.py - Manifest Tool → Kubernetes Manifests: applies or deletes
agentic_release.py - Manifest Tool → Kubernetes Cluster: runs kubectl
agentic_release.py - Health Probe Tool → Health Endpoint: probes endpoint
agentic_release.py - Health Endpoint → Request Metrics: increments counter
app.py - Incident Runner → Phoenix Tracing: registers traces
agentic_sre.py - Rollout Runner → Phoenix Tracing: registers traces
agentic_release.py