apm-observability
Use when the user asks about APM tools such as Datadog, New Relic, Dynatrace or Elastic APM, RUM, synthetic monitoring, APM tracing, or choosing and costing…
от j4flmao★ 47 звёзд на GitHub
Установить apm-observability в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
APM and Observability
Purpose
Design and implement observability for distributed systems using metrics, traces, and logs with OpenTelemetry, SLI/SLO frameworks, and actionable alerting.
Agent Protocol
Trigger
Exact user phrases: "APM", "observability", "Datadog", "New Relic", "Grafana", "Prometheus", "OpenTelemetry", "distributed tracing", "SLI", "SLO", "error budget", "application performance monitoring", "RUM", "synthetics", "instrumentation".
Input Context
Before activating, verify:
- Stack/language (for SDK selection: Java, Python, Go, Node.js, .NET).
- Infrastructure type (Kubernetes, VMs, serverless).
- Existing monitoring tools (if migrating from legacy).
- Budget constraints (observability tools can be expensive).
- Compliance requirements (log retention, audit trails, PII masking).
Output Artifact
Writes to OpenTelemetry instrumentation config, Prometheus rules, Grafana dashboard JSON, Datadog/New Relic config, alert rules, SLI/SLO definitions.
Response Format
Configuration YAML, Prometheus rules, dashboard JSON, or Terraform HCL for monitoring resources.
No preamble. No postamble. No explanations. No filler/hedging/transitions.
Completion Criteria
- Three pillars configured: metrics, traces, logs (at least 2 of 3).
- OpenTelemetry instrumentation for key services.
- SLIs and SLOs defined for critical user journeys.
- Alerting rules with proper severity levels and escalation.
- Dashboard created for system overview.
- Cost budget set for observability tool spend.
Max Response Length
Direct file write. No response text.
Architecture Decision Trees
Observability Tool Selection
| Tool | Best For | Cost | Self-Hosted |
|---|---|---|---|
| Datadog | Full-stack observability, large enterprises | $$$ (per-host + per-event) | No |
| Grafana + Prometheus | Metrics-first, Kubernetes-native | Free (OSS) / $$ (Grafana Cloud) | Yes |
| New Relic | APM-focused, polyglot apps | $$ (per-host + data ingested) | No |
| OpenTelemetry | Vendor-neutral instrumentation | Free (standards) | N/A |
| Elastic (ELK) | Log-centric, search-heavy | $ (self-hosted) / $$ (cloud) | Yes |
| SigNoz | OpenTelemetry-native APM | $$$ (cloud) / Free (self-hosted) | Yes |
| Dynatrace | Enterprise, automatic instrumentation | $$$$ | No |
Metrics vs Traces vs Logs: When to Use
| Signal | What It Answers | Storage Cost | Retention |
|---|---|---|---|
| Metrics | What's happening? How many/long? | Low | Months-years |
| Traces | Why is it slow? Where's the error? | High (per-span) | Days-weeks |
| Logs | What exactly happened? Debug context | Medium-high | Days-months |
Instrumentation Strategy
| Approach | Effort | Accuracy | Maintainability |
|---|---|---|---|
| Auto-instrumentation (agent) | Low | Medium | Low (magic) |
| Manual instrumentation (SDK) | High | High | High |
| eBPF (kernel-level) | Low | Medium (Linux only) | Medium |
| Service mesh (sidecar) | Medium | Medium (network only) | Medium |
Sampling Decision
| Sampling Strategy | Use Case | Trace Retention |
|---|---|---|
| Head-based (fixed % ) | Low traffic, debug | 100% for low-traffic |
| Tail-based (error + slow) | High traffic, production errors | 100% errors, 5% success |
| Probabilistic (random %) | High traffic, stats only | 1-10% |
| Rate-limited | Burst traffic | N traces/second |
Quick Start
OpenTelemetry SDK → Export metrics/traces to collector → Prometheus for metrics → Grafana for dashboards → Alertmanager for alerts → SLI/SLO tracking.
Core Workflow
Step 1: OpenTelemetry Instrumentation
# otel-collector-config.yaml
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
processors:
batch:
timeout: 1s
send_batch_size: 1024
memory_limiter:
check_interval: 1s
limit_mib: 512
spike_limit_mib: 128
attributes:
actions:
- key: environment
value: production
action: upsert
- key: datacenter
value: us-east-1
action: upsert
filter:
error_mode: ignore
metrics:
exclude:
match_type: regexp
metric_names:
- 'container\.network\.*'
probabilistic_sampler:
hash_seed: 42
sampling_percentage: 10.0
exporters:
otlp:
endpoint: "backend-otlp:4317"
tls:
insecure: false
headers:
api-key: "${OTEL_API_KEY}"
prometheus:
endpoint: "0.0.0.0:8889"
namespace: "app"
debug:
verbosity: basic
extensions:
health_check:
endpoint: "0.0.0.0:13133"
pprof:
endpoint: "0.0.0.0:1777"
service:
extensions: [health_check, pprof]
pipelines:
traces:
receivers: [otlp, jaeger]
processors: [me
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/apm-instrumentation.md
- references/apm-observability-advanced.md
- references/apm-observability-fundamentals.md
- references/datadog-setup.md
- references/grafana-cloud.md
- references/new-relic-setup.md
- references/synthetic-monitoring.md
FAQ
Что делает скилл apm-observability?
Use when the user asks about APM tools such as Datadog, New Relic, Dynatrace or Elastic APM, RUM, synthetic monitoring, APM tracing, or choosing and costing an observability vendor. Produces vendor APM setup, dashboards and cost controls. Not for vendor-neutral OpenTelemetry pipelines (use devops-opentelemetry) or Prometheus stacks (use prometheus-grafana).
Как установить скилл apm-observability?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл apm-observability запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…