Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analyzing-apm-data

БесплатноБез исполняемых скриптовНе проверен

Monitor application performance using the RED methodology (Rate, Errors, Duration) with Observe. Use when analyzing service health, investigating errors…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Analyzing APM Data

Application Performance Monitoring (APM) tracks the health and performance of your services using telemetry data. This skill teaches the RED methodology and how to choose between pre-aggregated metrics and raw span data for different APM use cases.

When to Use This Skill

  • Monitoring microservices health and performance
  • Building service dashboards with Rate, Errors, Duration (RED)
  • Investigating production incidents and errors
  • Tracking latency and throughput across services
  • Setting up SLO (Service Level Objective) monitoring
  • Understanding when to use metrics vs spans for APM
  • Root cause analysis of service degradation
  • Analyzing service dependencies and call patterns
  • Identifying database bottlenecks and slow queries
  • Understanding which services depend on a failing component

Prerequisites

  • Access to Observe tenant with OpenTelemetry span data
  • Understanding of distributed tracing concepts
  • Familiarity with metrics queries (see aggregating-gauge-metrics, analyzing-tdigest-metrics)
  • Familiarity with interval queries (see working-with-intervals)

Key Concepts

The RED Methodology

RED is a standard approach for monitoring microservices health:

R - Rate: Request volume (requests per second/minute/hour)

  • How much traffic is each service handling?
  • Are there traffic spikes or drops?

E - Errors: Error count and error rate (percentage)

  • How many requests are failing?
  • Which services have the highest error rates?

D - Duration: Latency percentiles (p50, p95, p99)

  • How fast are services responding?
  • Are there latency spikes?

Metrics vs Spans Decision Tree

Observe provides two ways to analyze APM data:

Metrics (Pre-aggregated, Fast)

  • Request counts: span_call_count_5m
  • Error counts: span_error_count_5m
  • Latency percentiles: span_*_duration_tdigest_5m
  • Pre-aggregated at 5-minute intervals

Spans (Raw Data, Detailed)

  • Dataset: OpenTelemetry/Span (interface: otel_span)
  • Complete trace information
  • All span attributes available

Decision Matrix:

Need Use Why
Dashboard, 24h+ range Metrics Fast, efficient, pre-aggregated
"How many errors?" Metrics Quick counts, good for alerts
"What went wrong?" Spans Error messages, stack traces
Latency overview Metrics (tdigest) Efficient percentiles
Filter by endpoint Spans Full attribute filtering
Real-time monitoring Metrics Consistent performance
Root cause analysis Spans Complete context, trace IDs
Service dependencies Spans Trace relationships, span types
Database bottlenecks Spans DB attributes, query details

Recommended Workflow:

  1. Start with metrics (fast overview)
  2. Identify anomalies (high errors, latency spikes)
  3. Drill down with spans (detailed investigation)

Discovery Workflow

Step 1: Find APM metrics

discover_context("request error latency", result_type="metric")

Common metrics:

  • span_call_count_5m - Request counts (gauge)
  • span_error_count_5m - Error counts (gauge)
  • span_sn_service_node_duration_tdigest_5m - Latency (tdigest)

Step 2: Find span dataset

discover_context("opentelemetry span trace")

Look for: OpenTelemetry/Span (interface: otel_span)

Step 3: Get detailed schemas

discover_context(metric_name="span_call_count_5m")
discover_context(dataset_id="<span_dataset_id>")

RED Methodology Patterns

Pattern 1: Rate - Request Volume (Metrics)

Get total requests per service over 24 hours:

align options(bins: 1), rate:sum(m("span_call_count_5m"))
aggregate total_requests:sum(rate), group_by(service_name)
| sort desc(total_requests)
| limit 10

Output: One row per service with total request count.

Use case: Identify highest-traffic services, detect traffic drops.

Pattern 2: Errors - Error Count (Metrics)

Get total errors per service:

align options(bins: 1), errors:sum(m("span_error_count_5m"))
aggregate total_errors:sum(errors), group_by(service_name)
fill total_errors:0
| sort desc(total_errors)
| limit 10

Output: Services ranked by error count (including zeros with fill).

Use case: Quick error overview, dashboard widgets.

Pattern 3: Duration - Latency Percentiles (Metrics)

Get latency percentiles per service:

align options(bins: 1), combined:tdigest_combine(m_tdigest("span_sn_service_node_duration_tdigest_5m"))
aggregate p50:tdigest_quantile(tdigest_combine(combined), 0.50),
          p95:tdigest_quantile(tdigest_combine(combined), 0.95),
          p99:tdigest_quantile(tdigest_combine(combined), 0.99),
          group_by(service_name)
| make_col p50_ms:p50/1000000, p95_ms:p95/1000000, p99_ms:p99/1000000
| sort desc(p95_ms)
| limit 10

Output: Latency percentiles in milliseconds per service.

Use case: SLO tracking, latency monitoring, performance comparison.

Note: Uses tdigest double-combine pattern (see analyzi

Полный SKILL.md на GitHub

Установить analyzing-apm-data в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл analyzing-apm-data?

Monitor application performance using the RED methodology (Rate, Errors, Duration) with Observe. Use when analyzing service health, investigating errors, tracking latency, or building APM dashboards. Covers when to use metrics vs spans, combining RED signals, and troubleshooting workflows. Cross-references working-with-intervals, aggregating-gauge-metrics, and analyzing-tdigest-metrics skills.

Как установить скилл analyzing-apm-data?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analyzing-apm-data запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analyzing-apm-data с