Back to Prompt Library
SQL & DataObservability AnalyticsCoding & Engineering
High-Throughput Time-Series p95/p99 Latency & Z-Score Anomaly SQL
Detects API latency spikes using rolling window percentiles, Z-score deviation thresholds, and BRIN/partitioned indexing.
Ready-to-Run Prompt Template
Mode: normalCreate a production SQL observability query (with reproducible CTE sample telemetry) that calculates 5-minute rolling p50, p95, and p99 API latencies per endpoint and flags statistical anomalies where latency exceeds 3 standard deviations (Z-score > 3).
Recommended Model
Fusta Core
Studio Mode
normal
Access
Free in Browser
Recommended Fusta Skills for This Prompt
SQL, Database & Data Engineer
Writes production PostgreSQL/ClickHouse/Firestore schemas, window-function analytics, and index tuning plans.
More Ready-to-Run Templates
SQL & Data
SaaS Revenue Cohort Retention & Net Dollar Expansion SQL
Self-contained PostgreSQL query with synthetic CTE dataset computing monthly logo retention, MRR expansion, contraction, and churn.
Live Canvas UIInteractive Pomodoro & Sprint Focus Studio
Builds a single-file dark Pomodoro focus studio with customizable intervals, priority task queue, session stats, and SVG progress rings.
Live Canvas UILLM KV-Cache & GPU VRAM Cluster Simulator
Interactive React dashboard calculating FP16/INT8/INT4 model weights, KV-cache growth across 4K–1M tokens, and multi-GPU H100/A100 tensor parallelism.