Skip to main content

design-service-metrics

Design a compact service metric set for demand, errors, duration, saturation, dependencies, and completed outcomes. Use when teams need actionable measurement without uncontrolled telemetry growth.

Source facts

Repository
protosphinx/sphinxstack
Last source activity
July 29, 2026 at 13:55
Detected SKILL.md language
English
Stars
3
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
design-service-metrics
category
data
description
Design a compact service metric set for demand, errors, duration, saturation, dependencies, and completed outcomes. Use when teams need actionable measurement without uncontrolled telemetry growth.
# design-service-metrics Begin with decisions and failure modes, then choose the smallest stable dimensions that answer them. ## Procedure 1. Define the service boundary, users, critical outcomes, objectives, and decisions. 2. Map request, job, stream, cache, storage, and dependency paths. 3. Choose counters, gauges, and histograms with explicit units and aggregation semantics. 4. Cover demand, success, error class, duration, concurrency, queue age, saturation, and business completion. 5. Keep label values bounded and document allowed sets and ownership. 6. Select histogram boundaries from objectives and observed distributions. 7. Define reset, missing, delayed, partial, and version-transition behavior. 8. Write canonical queries and dashboard or alert consumers. 9. Test emitted series across normal, failed, idle, overloaded, and deploy states. 10. Review usefulness, cost, and unused series after production observation. ## Guardrails - Do not encode arbitrary identifiers or error messages in labels. - A proxy metric must not be presented as the user outcome it only approximates. - Preserve unit and semantic compatibility when changing an existing name. ## Done - A metric catalog documents type, unit, labels, owner, and consumer - Normal and failure-state series are tested - Metric totals reconcile with logs or business records
View on GitHub