Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 6.65 KB

README.md

File metadata and controls

65 lines (52 loc) · 6.65 KB

Observability guides

Guides for choosing KPIs, building dashboards, setting alerts and analysing incidents, from business outcomes down to the API calls and resources behind them. Tool-agnostic, with a procedure and examples for mapping them onto your tools.

Use cases

I want to Read
Pick the KPIs for a product, and the key actions behind them kpis.md, then fill in kpi-map.yaml
Know which API calls a key action depends on, and what a failing call costs kpis.md: Connecting the levels
Instrument a service or the frontend events.md, Product analytics events
Build the dashboards dashboards.md: The dashboard set
Decide what pages us, and set an SLO alerts.md: What to page on, Choosing the SLO target, Burn-rate alerts
Alert on a quiet service alerts.md: Low traffic
Tell if a change is real, or whether a deploy hurt a KPI analysis.md, Attribution recipe
Handle an incident, then review it incidents.md
Cut noisy pages alerts.md: Reviewing alerts
Apply all this to our tools tools.md, and the tool pages under reference/
Hand the work to an AI agent ai-agents.md, then point it at AGENTS.md
Measure a key action that spans several steps (login with a code, checkout) flows.md (advanced)
Understand logs, spans and metrics signals.md

Using this repo with an agent

Point the agent at this repo (local path or URL) and tell it to start with AGENTS.md. It routes each task (choose KPIs, design dashboards, set an alert, check whether a change is real, triage an incident) to the sections to read, lists the tools, and sets the rules for applying the guides to a real system. Inside the repo, Claude Code loads it automatically through CLAUDE.md.

Example:

Use the observability guides in ~/dev/metrics: start with ~/dev/metrics/AGENTS.md.
Task: <what you want, e.g. pick the main KPIs for our app and the dashboards to build>.
Fill in templates/kpi-map.yaml from our code and tools; mark unknowns instead of guessing.
Show me the filled map and the plan before building anything.

Read in this order

One question runs through the guide: is the product working for users right now, and if not, what broke and did it matter? Each file is a chapter that opens with its rules, then explains them.

1. SignalsWhat the data is: logs, spans and metrics as events, metric types, RED/USE, OpenTelemetrysignals.md
2. KPIsWhat to measure: the KPI tree from business outcomes down to the key actions users take, their API calls and the resources behind them, and how an API call affects a KPIkpis.md
3. AnalysisHow to read the numbers honestly: noise vs real variation, intervals, baselines, and whether a change moved a KPIanalysis.md
4. DashboardsWhat to show: the dashboard set, panels, tagging, data sourcesdashboards.md
5. AlertsWhat to page on: SLO burn rates, thresholds by metric type, low trafficalerts.md
6. IncidentsWhen it breaks: triage, runbooks and reviews, at a high levelincidents.md
7. Wide eventsWhere the data comes from: one wide event per unit of work, metrics as projections of it, sampling, trade-offsevents.md
8. ToolsHow to apply it to your tools: inventory, limits, translation, gaps; tool pages under reference/tools.md
9. AgentsHow an AI agent applies the guides: access, what it may do, what it needs, how it reportsai-agents.md
10. Journey metricsAdvanced: journey metrics, for key actions that span several stepsflows.md

Calculator

Requires uv. From the repo root, uv run src/calc.py --help: burn-rate thresholds, Wilson intervals, z-tests, sample sizes, Poisson tails, spillover. Maintaining the repo (plots, checks): AGENTS.md.