Metrics Notes
A small collection of notes on service metrics, sampling intervals, and latency budgets. Kept here for quick reference.
Sampling intervals
- Scrape interval: 15s for most exporters, 60s for low-traffic hosts.
- Retention: 15 days local, 90 days rolled up.
- Cardinality budget: keep per-label series under 50k.
Latency budgets
- p50 under 50ms, p99 under 300ms for user-facing endpoints.
- Background jobs are exempt from the p99 target.
- Measure at the edge, not at the origin.
Naming
- Prefix with the subsystem:
web_, db_, queue_.
- Use base units. Seconds, not milliseconds.
- Avoid unbounded label values such as user ids.
Last edited November 2026. Static page, no tracking.