Academy › Projects › Project 4

Project 4: AI SRE / AIOps Agent

AdvancedWeek 4Azure Monitorscikit-learnLangGraphKQL

Problem: on-call engineers drown in alerts. Build an agent that detects anomalies in metrics and logs, explains a probable root cause and suggests (or runs, with approval) a runbook.

Architecture:

Metrics/Logs (Azure Monitor / Prometheus / Log Analytics)
  → Anomaly Detector (statistical: z-score, IsolationForest; multivariate: point, contextual, collective)
  → Alert enrichment → SRE Agent (LangGraph)
      tools: query_logs(KQL), get_metrics(), get_recent_deployments(), search_runbooks(RAG)
  → RCA summary → Teams/Slack → [Human approve] → Runbook action (restart, scale) via automation

Step by step:

  1. Generate synthetic metrics (CPU, latency, errors) with injected anomalies.
  2. Implement the detectors: a rolling z-score (point), seasonal baseline (contextual), IsolationForest (multivariate).
  3. Write the read-only tools first (logs, metrics, deployments).

Checking your access…