sre-observability-architect
Architect-level observability design for infrastructure and services — the three signals and what each is for, SLI-driven dashboards, log strategy and cost, trace propagation across boundaries, alert design that pages a human only when it should, and the runbook link every alert needs. Use when operating systems need to be diagnosable.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- sre-observability-architect
- license
- MIT
- metadata
- { "crusor-path": "cloud-and-devops-architect/operations-architect/sre-observability-architect", "crusor-domain": "cloud-and-devops-architect", "crusor-origin": "original", "crusor-sources": "opentelemetry.io/docs; prometheus.io/docs; sre.google/workbook/alerting-on-slos", "crusor-triggers": "observability, prometheus, grafana, opentelemetry, tracing, alerting, dashboards, sli, log aggregation, monitoring stack", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level observability design for infrastructure and services — the three signals and what each is for, SLI-driven dashboards, log strategy and cost, trace propagation across boundaries, alert design that pages a human only when it should, and the runbook link every alert needs. Use when operating systems need to be diagnosable.
- compatibility
- OpenTelemetry, Prometheus, Grafana, Datadog, CloudWatch, Loki
03 SKILL.md 正文
SRE Observability Architect
Observability is the ability to answer a new question without deploying code. Dashboards answer known questions; instrumentation decides whether the unknown ones are answerable.
When to use
- Standing up monitoring for a new system.
- Alert fatigue, or an incident nobody could diagnose.
- Cost of logs/metrics growing faster than traffic.
When NOT to use
- A local script or a one-off job.
- The problem is a single known bug — just fix it.
Decision 1 — Signals
| Signal | Answers | Cost driver |
|---|---|---|
| metrics | is it healthy, at what rate | series cardinality |
| logs | what exactly happened | volume |
| traces | where the time went | sampling |
| profiles | which code is slow | collection overhead |
- Metrics for detection, traces for localisation, logs for detail. Do not use logs as a metrics store.
- Cardinality is the metric cost trap: user ids and request ids are labels you will regret.
Decision 2 — Instrumentation
- OpenTelemetry SDKs, not vendor agents, so backends can change.
- Trace context propagated across HTTP, queues, and batch boundaries; a broken context = a useless trace.
- Span names stable and low-cardinality; attributes for specifics.
- Every service emits: request rate, error rate, duration, saturation, plus its own domain counters.
- Correlate: log lines carry trace id and span id, always.
Decision 3 — Dashboards
- One dashboard per service: golden signals, dependencies, deploy markers.
- SLI-based panels first (availability, latency, error budget burn), then resource detail.
- Annotate deploys and incidents on every dashboard — correlation starts there.
- Dashboards are code (provisioned from git), reviewed like code.
Decision 4 — Logs
- Structured JSON, consistent fields (
service,env,trace_id,level). - Levels used honestly: debug off in production, warnings that mean something.
- Volume control: sampling, retention tiers, and no PII.
- Store logs where they can be queried during an incident without a quota error.
Decision 5 — Alerts
- Page only on user-visible symptoms or error-budget burn; everything else is a ticket.
- Every alert needs: owner, runbook link, and a clear action.
- Symptoms over causes: "checkout error rate > 2%" pages; "CPU > 80%" does not.
- Group and dedupe; a single incident should not produce 40 pages.
- Review alerts monthly: delete unused, retune noisy, verify the runbook still works.
Decision 6 — Cost
- Metrics: drop high-cardinality labels, aggregate before ingest.
- Logs: retention by value — 7 days hot, 90 days cold, archive beyond.
- Traces: head sampling for volume, tail sampling for errors if the backend supports it.
- Review cost per service; observability spend should track the services it protects.
Failure modes at scale
- 4,000 dashboards, none owned, all showing green while users complain.
- Logs sampled at ingest so the failing request is not present.
- Traces without context propagation to the queue consumer: half a transaction.
- Pager fires on a metric with no runbook; engineer improvises at 3 a.m.
- Observability bill exceeding compute, nobody owns it.
Verification receipts
- Signal coverage per service: metrics, traces, logs, with gaps listed.
- One incident replayed from telemetry: found the cause without new code.
- Alert inventory with owner and runbook for each paging alert.
- Cardinality report showing the top label offenders.
- Cost by signal type with retention policy applied.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.