Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问clear审计未展示

observability-design可观察性设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

222

周安装

9

GitHub Stars

265

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:observability-design(可观察性设计)
来源仓库:https://github.com/rsmdt/the-startup
仓库路径:skills/observability-design
安装命令:
npx skills add https://github.com/rsmdt/the-startup --skill observability-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rsmdt/the-startup --skill observability-design

简介

observability-design 用于可观测性系统设计指导。

  • 涵盖日志、指标、追踪与 SLI/SLO/SLA 框架。
  • 适合在分布式系统监控与故障排查中使用。observability-design 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。
  • 通过 GitHub 安装,需确认宿主支持技能扩展机制。
  • 输出为设计建议,需结合实际运维能力落地实施。

SKILL.md

Observability Patterns

When to Use

  • Designing monitoring infrastructure for new services
  • Defining SLIs, SLOs, and error budgets for reliability
  • Implementing distributed tracing across microservices
  • Creating alert rules that minimize noise and maximize signal
  • Building dashboards for operations and business stakeholders
  • Establishing incident response and postmortem processes
  • Diagnosing production issues through telemetry correlation

Philosophy

You cannot fix what you cannot see. Observability is not about collecting data - it is about answering questions you have not thought to ask yet. Good observability turns every incident into a learning opportunity and every metric into actionable insight.

The Three Pillars

Metrics

Numeric measurements aggregated over time. Best for understanding system behavior at scale.

Characteristics:

  • Highly efficient storage (aggregated values)
  • Support mathematical operations (rates, percentiles)
  • Enable alerting on thresholds
  • Limited cardinality (avoid high-cardinality labels)

Types:

TypeUse CaseExample
CounterCumulative values that only increaseTotal requests, errors, bytes sent
GaugeValues that go up and downCurrent memory, active connections
HistogramDistribution of values in bucketsRequest latency, payload sizes
SummarySimilar to histogram, calculated client-sidePre-computed percentiles

Logs

Immutable records of discrete events. Best for understanding specific occurrences.

Characteristics:

  • Rich context and arbitrary data
  • Expensive to store and query at scale
  • Essential for debugging specific issues
  • Should be structured (JSON) for parseability

Structure:

Required fields:
- timestamp: ISO 8601 format with timezone
- level: ERROR, WARN, INFO, DEBUG
- message: Human-readable description
- service: Service identifier
- trace_id: Correlation identifier

Context fields:
- user_id: Sanitized user identifier
- request_id: Request correlation
- duration_ms: Operation timing
- error_type: Classification for errors

Traces

Records of request flow across distributed systems. Best for understanding causality and latency.

Characteristics:

  • Show request path through services
  • Identify latency bottlenecks
  • Reveal dependencies and failure points
  • Higher overhead than metrics

Components:

  • Trace: Complete request journey
  • Span: Single operation within a trace
  • Context: Metadata propagated across services

SLI/SLO/SLA Framework

Service Level Indicators (SLIs)

Quantitative measures of service behavior from the user perspective.

Common SLI categories:

CategoryMeasuresExample SLI
AvailabilityService is responding% of successful requests
LatencyResponse speed% of requests < 200ms
ThroughputCapacityRequests processed per second
Error RateCorrectness% of requests without errors
FreshnessData currency% of data < 1 minute old

SLI specification:

SLI: Request Latency
Definition: Time from request received to response sent
Measurement: Server-side histogram at p50, p95, p99
Exclusions: Health checks, internal tooling
Data source: Application metrics

Service Level Objectives (SLOs)

Target reliability levels for SLIs over a time window.

SLO formula:

SLO = (Good events / Total events) >= Target over Window

Example:
99.9% of requests complete successfully in < 200ms
measured over a 30-day rolling window

Setting SLO targets:

  • Start with current baseline performance
  • Consider user expectations and business impact
  • Balance reliability investment against feature velocity
  • Document error budget policy

Error Budgets

The allowed amount of unreliability within an SLO.

Calculation:

Error Budget = 1 - SLO Target

99.9% SLO = 0.1% error budget
= 43.2 minutes downtime per 30 days
= 8.64 seconds per day

Error budget policies:

  • Budget remaining: Continue feature development
  • Budget depleted: Focus on reliability work
  • Budget burning fast: Freeze deploys, investigate

Alerting Strategies

Symptom-Based Alerts

Alert on user-visible symptoms, not internal causes.

Good alerts:

  • Error rate exceeds threshold (users experiencing failures)
  • Latency SLO at risk (users experiencing slowness)
  • Queue depth growing (backlog affecting users)

Poor alerts:

  • CPU at 80% (may not affect users)
  • Pod restarted (self-healing, may not affect users)
  • Disk at 70% (not yet impacting service)

Multi-Window, Multi-Burn-Rate Alerts

Detect fast burns quickly, slow burns before budget depletion.

Configuration:

Fast burn: 14.4x burn rate over 1 hour
  - Fires in 1 hour if issue persists
  - Catches severe incidents quickly

Slow burn: 3x burn rate over 3 days
  - Fires before 30-day budget depletes
  - Catches gradual degradation

Alert Fatigue Prevention

Strategies:

  • Alert only on actionable issues
  • Consolidate related alerts
  • Set meaningful thresholds (not arbitrary)
  • Require sustained condition before firing
  • Include runbook links in every alert
  • Review and prune alerts quarterly

Alert quality checklist:

  • Can someone take action right now?
  • Is the severity appropriate?
  • Does it include enough context?
  • Is there a runbook linked?
  • Has it fired false positives recently?

Dashboard Design

Hierarchy of Dashboards

Service Health Overview:

  • High-level SLO status
  • Error budget consumption
  • Key business metrics
  • Designed for quick triage

Deep-Dive Diagnostic:

  • Detailed metrics breakdown
  • Resource utilization
  • Dependency health
  • Designed for investigation

Business Metrics:

  • User-facing KPIs
  • Conversion and engagement
  • Revenue impact
  • Designed for stakeholders

Dashboard Principles

  • Answer specific questions, not show all data
  • Use consistent color coding (green=good, red=bad)
  • Show time ranges appropriate to the metric
  • Include context (deployments, incidents) on graphs
  • Mobile-responsive for on-call use
  • Provide drill-down paths to detailed views

Essential Panels

PanelPurposeAudience
SLO StatusCurrent reliability vs targetEveryone
Error BudgetRemaining budget and burn rateEngineering
Request RateTraffic patterns and anomaliesOperations
Latency Distributionp50, p95, p99 over timeEngineering
Error BreakdownErrors by type and endpointEngineering
Dependency HealthStatus of upstream servicesOperations

Best Practices

  • Correlate metrics, logs, and traces with shared identifiers
  • Instrument code at service boundaries, not everywhere
  • Use structured logging with consistent field names
  • Set retention policies appropriate to data value
  • Test alerts in staging before production
  • Document SLOs and share with stakeholders
  • Conduct regular game days to validate observability
  • Automate common diagnostic procedures in runbooks

Anti-Patterns

  • Alert on every possible metric (alert fatigue)
  • Create dashboards without specific questions in mind
  • Log without structure or correlation IDs
  • Set SLOs without measuring current baseline
  • Ignore error budget policies when convenient
  • Treat all alerts with equal severity
  • Store high-cardinality data in metrics (use logs/traces)
  • Skip postmortems when issues resolve themselves

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.4%
按下载量换算20

windsurf

25.51%
按下载量换算18

OpenCode

17.69%
按下载量换算12

Gemini CLI

13.12%
按下载量换算9

trae

7.24%
按下载量换算5

Codex

3.37%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills