Observability Monitoring
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
Use When
- Use when designing or reviewing logs, metrics, traces, alerts, SLOs, dashboards, audit events, or production telemetry for web apps, APIs, SaaS platforms, mobile backends, and AI systems. Covers instrumentation strategy, diagnosis-first telemetry, alert quality, and operational visibility.
Do Not Use When
- The request is business analytics without a production diagnosis, service-level, audit, or operator-response requirement.
- The task only asks to install a monitoring product; first define the operational questions and service outcomes this skill requires.
Required Inputs
| Input |
Required |
Why it matters |
| Critical user and system flows |
yes |
Determines what must be observable |
| Service ownership and escalation paths |
yes |
Connects signals to accountable action |
| Architecture, dependencies, and async boundaries |
yes |
Defines correlation and trace coverage |
| Data sensitivity, retention, and cost limits |
conditional |
Constrains event fields, sampling, and storage |
Workflow
Start from critical flows and operator questions, define service outcomes and SLOs, map logs, metrics, traces, and audit events, set correlation and cardinality rules, create actionable alerts and dashboards, then test diagnosis using a known failure.
Quality Standards
Every page has a named owner, user-impact rationale, and first action. Signals carry enough version, environment, tenant, and dependency context to diagnose safely, while secrets and sensitive payloads remain excluded or redacted.
Outputs
| Output |
Consumer |
Acceptance condition |
| Telemetry map |
Developers and operators |
Links each critical flow and failure mode to logs, metrics, traces, audit events, and correlation fields |
| SLO and alert catalogue |
Service owner and on-call team |
Defines measurement, target, window, severity, owner, runbook, and paging action |
| Diagnostic dashboard and verification record |
Incident responders |
Answers impact, location, change, and next-action questions during an injected or known failure |
Evidence Produced
| Category |
Artifact |
Format |
Example |
| Operability |
SLO record |
Markdown doc per skill-composition-standards/references/slo-template.md |
docs/slo/checkout-service.md |
| Operability |
Observability wiring note |
Markdown doc listing logs, metrics, traces, and dashboards wired |
docs/observability/checkout-wiring.md |
| Operability |
Alert catalogue |
Markdown doc listing alert name, threshold, and runbook link |
docs/observability/checkout-alerts.md |
Capability contract
Inspect telemetry read-only by default. Deploy collectors, change retention, create paging rules, or access sensitive logs only with explicit authority.
Decision rules
| Condition |
Action |
| Signal has no operator action |
Do not page |
| Label cardinality is unbounded |
Remove or aggregate it |
| SLO absent |
Define service outcome first |
Domain Anti-Patterns
- Logging secrets. Fix: redact at collection.
- Paging on CPU alone. Fix: alert on user impact.
- Using request IDs as metric labels. Fix: keep them in traces.
- Building ownerless dashboards. Fix: assign a decision and owner.
- Treating missing telemetry as healthy. Fix: alert on collection gaps.
References
- Use the
references/ directory for deep detail after reading the core workflow below.
- Load
references/observability-platform.md when the task is platform buildout, SigNoz/OpenTelemetry stack design, collector topology, storage, retention, or dashboard infrastructure.
Use this skill when a system must be diagnosable in production. It covers operational telemetry, not just analytics. The goal is to make failures understandable, actionable, and bounded.
Load Order
- Load
world-class-engineering.
- Load this skill before finalizing architecture, APIs, jobs, or release design.
- Pair it with
deployment-release-engineering for rollout and incident visibility.
Observability Workflow
1. Identify Critical Flows
For each critical flow define:
- trigger
- expected success outcome
- known failure modes
- business impact if degraded
- operator action if it fails
Instrument the highest-impact flows first.
2. Define Telemetry By Question
For every important signal, ask:
- what question will this answer?
- who needs the answer?
- how quickly must they see it?
Use this mapping:
- logs for detailed forensic context
- metrics for trend, rate, saturation, and alerting
- traces for multi-hop latency and dependency diagnosis
- audit events for material business or security actions
- profiles when CPU, memory, lock, or cost behavior matters
3. Design Correlation
Every request, job, and workflow should have:
- request or trace ID
- actor or service identity
- tenant or ownership context where applicable
- environment and version metadata
- release marker or deploy version
- dependency identity for important downstream calls
Without correlation, telemetry becomes noise.
4. Design High-Context Events
- Prefer structured events with useful dimensions over sparse text strings.
- Keep personally sensitive or secret fields out, but do not strip away the context needed to debug.
- Be deliberate about cardinality. High-cardinality dimensions can be valuable when they answer real debugging questions.
- Emit state transitions for long-running jobs and workflows so operators can reconstruct partial failure.
5. Define SLOs And Alerts
Use SLOs for user-facing reliability, not for every internal metric.
Define:
- success metric
- time window
- target threshold
- error budget implications
Alerts should page only when immediate action is required.
6. Build Dashboards For Diagnosis
Dashboards should answer:
- what is broken?
- who is affected?
- where is the bottleneck?
- what changed recently?
- what should the operator do next?
Do not create vanity dashboards that cannot guide action.
Telemetry Standards
Logs
- Use structured logs.
- Include IDs, actor context, tenant context, route or job name, and result.
- Log failures with enough context to debug, but never leak secrets or sensitive payloads.
- Separate business audit logs from application diagnostics.
Metrics
Track:
- request rate
- error rate
- latency percentiles
- resource saturation
- queue depth and lag
- retry and fallback counts
- cache hit rates where relevant
- cost or token usage where relevant
- saturation signals for pools, workers, rate limits, or thread usage
Prefer percentiles and rates over averages.
Traces
Trace:
- requests crossing service or process boundaries
- expensive background workflows
- external dependencies
- AI or retrieval pipelines with multiple stages
- deploy markers and notable async transitions when the platform supports them
Audit Events
Audit events are required for:
- auth and role changes
- financial or ledger-affecting actions
- entitlement changes
- exports, deletions, and approvals
- AI actions with external or privileged side effects
AI And Cost-Aware Telemetry
For AI-enabled systems, capture:
- model, prompt version, and tool path
- retrieval stages and source counts
- token, latency, and cost budgets
- eval outcomes or quality checks where available
- fallback, refusal, and validation failures
Alert Design Rules
- Page on symptoms that require immediate human action.
- Ticket on trends or degradations that can wait.
- Dashboard everything else.
- Avoid alerts without a runbook path.
- Include environment, service, version, impact, and likely first checks.
See references/alert-design.md.
Deliverables
For significant systems, produce:
- telemetry map for critical flows
- SLO definitions
- alert list with severity and owner
- dashboard outline
- audit event list
- trace and correlation ID strategy
- cardinality and sensitive-data guardrails
Review Checklist
References
- references/alert-design.md: Alert severity and routing rules.
- references/diagnosis-first-observability.md: Event design, cardinality, release markers, and AI telemetry.
- references/slo-template.md: SLO template and service questions.
1---2name: observability-monitoring3description: Use when designing or reviewing logs, metrics, traces, alerts, SLOs, dashboards, audit events, or production telemetry for web apps, APIs, SaaS platforms, mobile backends, and AI systems. Covers instrumentation strategy, diagnosis-first telemetry, alert quality, and operational visibility.4metadata:5 portable: true6 compatible_with:7 - claude-code8 - codex9---1011# Observability Monitoring12Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.1314<!-- dual-compat-start -->15## Use When1617- Use when designing or reviewing logs, metrics, traces, alerts, SLOs, dashboards, audit events, or production telemetry for web apps, APIs, SaaS platforms, mobile backends, and AI systems. Covers instrumentation strategy, diagnosis-first telemetry, alert quality, and operational visibility.1819## Do Not Use When2021- The request is business analytics without a production diagnosis, service-level, audit, or operator-response requirement.22- The task only asks to install a monitoring product; first define the operational questions and service outcomes this skill requires.2324## Required Inputs2526| Input | Required | Why it matters |27|---|---|---|28| Critical user and system flows | yes | Determines what must be observable |29| Service ownership and escalation paths | yes | Connects signals to accountable action |30| Architecture, dependencies, and async boundaries | yes | Defines correlation and trace coverage |31| Data sensitivity, retention, and cost limits | conditional | Constrains event fields, sampling, and storage |3233## Workflow3435Start from critical flows and operator questions, define service outcomes and SLOs, map logs, metrics, traces, and audit events, set correlation and cardinality rules, create actionable alerts and dashboards, then test diagnosis using a known failure.3637## Quality Standards3839Every page has a named owner, user-impact rationale, and first action. Signals carry enough version, environment, tenant, and dependency context to diagnose safely, while secrets and sensitive payloads remain excluded or redacted.4041## Outputs4243| Output | Consumer | Acceptance condition |44|---|---|---|45| Telemetry map | Developers and operators | Links each critical flow and failure mode to logs, metrics, traces, audit events, and correlation fields |46| SLO and alert catalogue | Service owner and on-call team | Defines measurement, target, window, severity, owner, runbook, and paging action |47| Diagnostic dashboard and verification record | Incident responders | Answers impact, location, change, and next-action questions during an injected or known failure |4849## Evidence Produced5051| Category | Artifact | Format | Example |52|----------|----------|--------|---------|53| Operability | SLO record | Markdown doc per `skill-composition-standards/references/slo-template.md` | `docs/slo/checkout-service.md` |54| Operability | Observability wiring note | Markdown doc listing logs, metrics, traces, and dashboards wired | `docs/observability/checkout-wiring.md` |55| Operability | Alert catalogue | Markdown doc listing alert name, threshold, and runbook link | `docs/observability/checkout-alerts.md` |5657## Capability contract58Inspect telemetry read-only by default. Deploy collectors, change retention, create paging rules, or access sensitive logs only with explicit authority.5960## Decision rules61| Condition | Action |62|---|---|63| Signal has no operator action | Do not page |64| Label cardinality is unbounded | Remove or aggregate it |65| SLO absent | Define service outcome first |6667## Domain Anti-Patterns68- Logging secrets. Fix: redact at collection.69- Paging on CPU alone. Fix: alert on user impact.70- Using request IDs as metric labels. Fix: keep them in traces.71- Building ownerless dashboards. Fix: assign a decision and owner.72- Treating missing telemetry as healthy. Fix: alert on collection gaps.7374## References7576- Use the `references/` directory for deep detail after reading the core workflow below.77- Load `references/observability-platform.md` when the task is platform buildout, SigNoz/OpenTelemetry stack design, collector topology, storage, retention, or dashboard infrastructure.78<!-- dual-compat-end -->79Use this skill when a system must be diagnosable in production. It covers operational telemetry, not just analytics. The goal is to make failures understandable, actionable, and bounded.8081## Load Order82831. Load `world-class-engineering`.842. Load this skill before finalizing architecture, APIs, jobs, or release design.853. Pair it with `deployment-release-engineering` for rollout and incident visibility.8687## Observability Workflow8889### 1. Identify Critical Flows9091For each critical flow define:9293- trigger94- expected success outcome95- known failure modes96- business impact if degraded97- operator action if it fails9899Instrument the highest-impact flows first.100101### 2. Define Telemetry By Question102103For every important signal, ask:104105- what question will this answer?106- who needs the answer?107- how quickly must they see it?108109Use this mapping:110111- logs for detailed forensic context112- metrics for trend, rate, saturation, and alerting113- traces for multi-hop latency and dependency diagnosis114- audit events for material business or security actions115- profiles when CPU, memory, lock, or cost behavior matters116117### 3. Design Correlation118119Every request, job, and workflow should have:120121- request or trace ID122- actor or service identity123- tenant or ownership context where applicable124- environment and version metadata125- release marker or deploy version126- dependency identity for important downstream calls127128Without correlation, telemetry becomes noise.129130### 4. Design High-Context Events131132- Prefer structured events with useful dimensions over sparse text strings.133- Keep personally sensitive or secret fields out, but do not strip away the context needed to debug.134- Be deliberate about cardinality. High-cardinality dimensions can be valuable when they answer real debugging questions.135- Emit state transitions for long-running jobs and workflows so operators can reconstruct partial failure.136137### 5. Define SLOs And Alerts138139Use SLOs for user-facing reliability, not for every internal metric.140141Define:142143- success metric144- time window145- target threshold146- error budget implications147148Alerts should page only when immediate action is required.149150### 6. Build Dashboards For Diagnosis151152Dashboards should answer:153154- what is broken?155- who is affected?156- where is the bottleneck?157- what changed recently?158- what should the operator do next?159160Do not create vanity dashboards that cannot guide action.161162## Telemetry Standards163164### Logs165166- Use structured logs.167- Include IDs, actor context, tenant context, route or job name, and result.168- Log failures with enough context to debug, but never leak secrets or sensitive payloads.169- Separate business audit logs from application diagnostics.170171### Metrics172173Track:174175- request rate176- error rate177- latency percentiles178- resource saturation179- queue depth and lag180- retry and fallback counts181- cache hit rates where relevant182- cost or token usage where relevant183- saturation signals for pools, workers, rate limits, or thread usage184185Prefer percentiles and rates over averages.186187### Traces188189Trace:190191- requests crossing service or process boundaries192- expensive background workflows193- external dependencies194- AI or retrieval pipelines with multiple stages195- deploy markers and notable async transitions when the platform supports them196197### Audit Events198199Audit events are required for:200201- auth and role changes202- financial or ledger-affecting actions203- entitlement changes204- exports, deletions, and approvals205- AI actions with external or privileged side effects206207### AI And Cost-Aware Telemetry208209For AI-enabled systems, capture:210211- model, prompt version, and tool path212- retrieval stages and source counts213- token, latency, and cost budgets214- eval outcomes or quality checks where available215- fallback, refusal, and validation failures216217## Alert Design Rules218219- Page on symptoms that require immediate human action.220- Ticket on trends or degradations that can wait.221- Dashboard everything else.222- Avoid alerts without a runbook path.223- Include environment, service, version, impact, and likely first checks.224225See [references/alert-design.md](references/alert-design.md).226227## Deliverables228229For significant systems, produce:230231- telemetry map for critical flows232- SLO definitions233- alert list with severity and owner234- dashboard outline235- audit event list236- trace and correlation ID strategy237- cardinality and sensitive-data guardrails238239## Review Checklist240241- [ ] Critical flows have explicit telemetry.242- [ ] IDs and tenant context are correlated across logs, metrics, and traces.243- [ ] Events contain enough context to debug without unsafe data leakage.244- [ ] Alerts map to operator action, not mere curiosity.245- [ ] SLOs reflect user impact, not internal implementation trivia.246- [ ] Audit events are defined for material actions.247- [ ] Sensitive data is excluded or redacted from telemetry.248249## References250251- [references/alert-design.md](references/alert-design.md): Alert severity and routing rules.252- [references/diagnosis-first-observability.md](references/diagnosis-first-observability.md): Event design, cardinality, release markers, and AI telemetry.253- [references/slo-template.md](references/slo-template.md): SLO template and service questions.