Skip to main content

observability-setup

Sets up service observability with mandatory golden signals, Prometheus alert rules, and a structured logging contract; use when setting up monitoring for a new service, configuring alerts, or debugging production issues.

소스 정보

저장소
sawrus/agent-guides
최근 소스 활동
2026년 10월 16일 19:08
감지된 SKILL.md 언어
영어
스타
19
포크
4

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
observability-setup
description
Sets up service observability with mandatory golden signals, Prometheus alert rules, and a structured logging contract; use when setting up monitoring for a new service, configuring alerts, or debugging production issues.
# Skill: Observability Setup ## When to load When setting up monitoring for a new service, configuring alerts, debugging production issues. ## Golden Signals (Mandatory) Every service must expose: 1. **Latency**: p50, p95, p99 response times 2. **Traffic**: requests per second 3. **Errors**: 4xx/5xx rate 4. **Saturation**: CPU %, memory %, queue depth ## Prometheus Alert Rules ```yaml groups: - name: api-alerts rules: - alert: HighErrorRate expr: | sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > 0.01 for: 2m labels: { severity: critical } annotations: summary: "Error rate > 1% for 2 minutes" runbook: "https://runbooks.internal/high-error-rate" - alert: HighLatency expr: histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) > 2 for: 5m labels: { severity: warning } ``` ## Structured Logging Contract ```json { "timestamp": "2026-02-16T10:30:00Z", "level": "ERROR", "service": "payments-api", "trace_id": "abc123", "message": "Payment processing failed", "error": { "type": "PaymentGatewayError", "code": "CARD_DECLINED" }, "duration_ms": 1240 } ```
GitHub에서 보기