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.
The capstone and what it builds on
- 1LLM Observability & Eval DashboardThe capstone brief
- 2OpenTelemetry GenAI - Tracing Tool Calls End-to-EndPhase 13: Tools and protocols
- 3OpenTelemetry GenAI Semantic ConventionsPhase 14: Agent engineering
- 4Agent Observability: Langfuse, Phoenix, OpikPhase 14: Agent engineering
- 5LLM Observability Stack SelectionPhase 17: Infrastructure and production
- 6SRE for AI - Multi-Agent Incident Response, Runbooks, Predictive DetectionPhase 17: Infrastructure and production
- 7Evaluation & Testing LLM ApplicationsPhase 11: LLM engineering and RAG
- 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
- 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.
- 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.
- 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.
- 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.
- PII-leak judge that scores responses and pushes high scores into a triage queue.
- 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).
- 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.
- Alerting chain exercised end to end (Prometheus Alertmanager to a Slack webhook, email or a local webhook receiver).
- 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).
- Eval correctness: compare automated eval scores against your own labels on at least 30 traces and report agreement.
- 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.ymlandREADME.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.
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.