KatalockAi AcademyBack to KatalockAi
Capstone 11, counts toward Phase 18

LLM observability and eval dashboard

Self-host an LLM observability plane: OpenTelemetry GenAI traces from several SDKs, sampled eval jobs, drift detection, alerting and a dashboard that catches an injected PII regression fast.

about 25 h Earns its own certificate Reviewed against a 7-point rubric
Submit your project Get coached by Professor Katalock

The capstone and what it builds on

  1. 1LLM Observability & Eval DashboardThe capstone brief
  2. 2OpenTelemetry GenAI - Tracing Tool Calls End-to-EndPhase 13: Tools and protocols
  3. 3OpenTelemetry GenAI Semantic ConventionsPhase 14: Agent engineering
  4. 4Agent Observability: Langfuse, Phoenix, OpikPhase 14: Agent engineering
  5. 5LLM Observability Stack SelectionPhase 17: Infrastructure and production
  6. 6SRE for AI - Multi-Agent Incident Response, Runbooks, Predictive DetectionPhase 17: Infrastructure and production
  7. 7Evaluation & Testing LLM ApplicationsPhase 11: LLM engineering and RAG
  8. 8LLM Evaluation - RAGAS, DeepEval, G-EvalPhase 5: Natural language processing

What You'll Build

A self-hosted observability stack for LLM apps. Instrumented apps send OpenTelemetry GenAI spans through a collector with tail sampling into a span store; scheduled eval jobs score sampled traces; a drift detector watches prompt embeddings; alerts fire through a real chain. The proof is an injected regression (a chatbot that starts leaking fake SSNs) caught with a measured time-to-alert.

Requirements

  1. OpenTelemetry Collector config with an OTLP HTTP receiver, tail sampling that keeps 100% of errored traces and about 10% of successes, and an exporter to your span store.
  2. Span schema mirroring GenAI semantic conventions (system, request model, input and output tokens, latency, prompt hash, trace and parent ids) plus a JSON payload column, indexed by userid and appid. ClickHouse is the reference; DuckDB or Postgres is accepted if justified.
  3. SDK coverage: at least 4 instrumentation families (for example OpenAI SDK pointed at any compatible endpoint, LangChain, LlamaIndex, LiteLLM, manual OTel) producing canonical spans, with a script that checks required attributes land in the store.
  4. Scheduled eval job over recently sampled traces scoring faithfulness, toxicity and answer relevance (DeepEval, RAGAS or an LLM judge), written back as eval spans linked to the parent trace.
  5. PII-leak judge that scores responses and pushes high scores into a triage queue.
  6. Drift detector computing PSI on prompt embeddings between the current window and a baseline window, alerting above a threshold (0.2 is the usual rule of thumb).
  7. Dashboard (Next.js, Streamlit or Grafana) with overview (spans/s, cost per user, p95 latency), trace search with a waterfall, eval trends, drift and alerts pages.
  8. Alerting chain exercised end to end (Prometheus Alertmanager to a Slack webhook, email or a local webhook receiver).
  9. Regression probe: deploy a demo chatbot change that leaks fake SSNs in a few percent of responses and measure time from deploy to alert (lesson target: under 5 minutes).
  10. Eval correctness: compare automated eval scores against your own labels on at least 30 traces and report agreement.
  11. Load test: report the sustained span ingest rate your setup handles without backlog.

Constraints

  • Model-agnostic: any OpenAI-compatible endpoint (including the KatalockAi API) or a local model (for example via Ollama, llama.cpp or vLLM) may be used. No named commercial model is required; record which model you used in the README.
  • Hardware: a laptop with Docker Compose runs the collector, ClickHouse, Prometheus and the UI.
  • Substitution: the lesson targets 6 SDK families and 1k spans/s sustained. Here 4 or more families and whatever sustained rate your laptop achieves (with the measurement method) are accepted.
  • Use only synthetic personal data (fake SSNs and names) in the probe.

Stretch Goals

  • Compute PSI per app_id and show per-app drift trails.
  • Add a toxicity-aware tail-sampling policy and measure the sampling bias it introduces.
  • Add a user-impact page with cost and failure rate per user.

How to Submit

  • Public GitHub repo with collector/, storage/ (schema), apps/ (instrumented demo apps), evals/, drift/, alerting/, ui/, docker-compose.yml and README.md.
  • README: architecture, how to bring the stack up, SDK coverage table, eval agreement, drift method, the regression probe timeline with MTTR, load test numbers and limitations.
  • Paste the SDK coverage check output, the regression probe timeline and the eval agreement numbers.

How It's Reviewed

Professor Katalock reads your repository and the evidence you paste, and scores each criterion out of 100. You pass with a weighted total of 70 or more and no criterion below 40. A copied or padded submission is flagged and fails.

CriterionWeightHow it's checked
Trace-schema coverage20Coverage script output shows 4 or more SDK families producing canonical GenAI attributes in the store.
Eval correctness15Automated eval scores compared to the learner's labels on 30 or more traces with agreement reported.
Regression detection time15Injected SSN-leak probe with timestamps from deploy to alert; under 5 minutes is the lesson target.
Cost and scale10Sustained ingest rate measured with method; tail sampling configured.
Alerting and drift detection15PSI drift job and Alertmanager (or equivalent) chain exercised end to end with evidence.
Code quality and structure10Compose file brings the stack up; components separated; runs per README.
README: design decisions and limitations15README explains storage, sampling and threshold choices, what the learner's own probe revealed and the limits of the setup.

Submit

Push your work to a public GitHub repository with a README that explains how to run it, then paste the evidence below. Up to 3 reviews a day, free.

  • SDK coverage check output
  • Regression probe timeline (deploy time, first leaked span, eval flag, alert received) and MTTR
  • Eval agreement table against hand labels
  • Load test result (sustained spans/s, backlog behaviour)
  • Description or screenshot link of the dashboard overview and drift pages

Reviews are done by AI against the rubric above. They check the evidence in your repository; they are not a substitute for a human code review, and a review can be wrong. If you think it is, improve the README so the evidence is unmistakable and resubmit.