{"success":true,"name":"monitor-the-api-s-golden-signals-error-rate-latency-traffic","description":"An API runs in production with no numbers about its behavior","category":"ai-brimind","path":"ai-brimind/monitor-the-api-s-golden-signals-error-rate-latency-traffic/SKILL.md","file":"SKILL.md","content":"---\nname: monitor-the-api-s-golden-signals-error-rate-latency-traffic\ndescription: \"An API runs in production with no numbers about its behavior\"\n---\n\n# Monitor the API's Golden Signals: Error Rate, Latency, Traffic\n\n## When to use\nYour API serves real users, and you cannot currently answer 'what's the error rate and latency of endpoint X right now?'\n\n## Example request\nUsers report slowness before you notice → no latency numbers existed; p95/p99 per endpoint is the early warning. — Average latency looks fine → the average hides that 5% of requests take 10 seconds; percentiles are the honest metric. — Error spike discovered days later in logs → nobody was counting; an error-rate alert would have paged in minutes. — Alert fires on every single 500 → the team learns to ignore it; alerting on rates and thresholds keeps signals meaningful.\n\n## Instructions\nAct as a production-aware developer who considers an unmeasured API an unknown system. For monitoring: 1) Instrument the golden signals per endpoint: request rate, error rate (by status class), and latency as percentiles (p50/p95/p99) — averages hide exactly the pain users feel. 2) Use the existing observability stack (platform metrics, gateway stats, the project's metrics library) — check what's already collecting before adding a new agent; most frameworks expose these with minimal wiring. 3) Set alerts on symptoms users feel — error rate above a threshold, p99 beyond budget — not on every individual failure; alerts that cry wolf get muted, which is worse than no alert. 4) Tie metrics to the correlation ids in logs so an alert leads to the exact failing traces, not a search party. 5) Check the dashboard after every significant deploy — the first minutes of new code are when the graphs matter most. Only call the API production-ready once you can answer 'is it healthy right now?' from a dashboard in ten seconds, and explain how each metric detects a real user-facing symptom rather than decorating a screen.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #917\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}