Skip to content
Back to skills

Observability Setup

ASecurity

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.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentsgodebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add sawrus/agent-guides --skill observability-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Observability Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Observability Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sawrus-observability-setup/badge)](https://www.skillsdirectory.com/skills/sawrus-observability-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.