Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04091

apm

Application Performance Monitoring and transaction analysis. Use when investigating application errors, slow response times, throughput issues, or…

БесплатноБез исполняемых скриптов
CognitionAIот CognitionAI★ 42 звезды на GitHub

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

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

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

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

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

Application Performance Monitoring

Analyze application performance focusing on error rates, latency, throughput, and transaction behavior.

Core Responsibility

This skill helps investigate and diagnose application-level performance issues including:

  • High error rates and error patterns
  • Slow response times and latency spikes
  • Throughput degradation
  • Transaction failures and timeouts
  • Apdex score degradation
  • Service dependencies and external calls

Critical Workflow Note

IMPORTANT: Use specialized analysis tools FIRST before writing custom NRQL queries.

Preferred Workflow:

  1. Use analyze_golden_metrics - Automatically fetches and analyzes throughput, error rate, latency, and resource usage for an entity
  2. Use list_top_transactions - Gets top transactions by volume, latency, or error rate
  3. Use analyze_transactions - Analyzes specific transaction patterns and performance
  4. Use execute_nrql_query - Only for custom queries not covered by specialized tools

Tool Selection Guide:

✓ BEST: analyze_golden_metrics(entity_guid="...")
  → Returns comprehensive performance metrics automatically

✓ GOOD: list_top_transactions(entity_guid="...", metric="duration")
  → Returns top slow transactions

⚠️ FALLBACK: execute_nrql_query(nrql_query="SELECT...")
  → Use only when specialized tools don't cover your need

Why use specialized tools?

  • Pre-built queries optimized for performance
  • Consistent metric collection across investigations
  • Automatic baseline comparisons
  • Structured output for easier analysis

Key Performance Metrics

Error Rate

  • Definition: Percentage of failed requests
  • Target: Typically < 1% for healthy applications
  • Investigation: Segment by transaction name, error type, host
  • Correlate with: Deployments, infrastructure changes, dependencies

Response Time / Latency

  • Metrics: Average, median, p95, p99 response times
  • Target: Depends on SLAs (e.g., p95 < 200ms for API endpoints)
  • Investigation: Identify slow transactions, analyze span timing
  • Correlate with: Database queries, external service calls, resource usage

Throughput

  • Definition: Requests per minute (rpm)
  • Investigation: Look for drops or spikes
  • Correlate with: Error rates, response times, infrastructure capacity

Apdex Score

  • Definition: User satisfaction metric (0.0 to 1.0)
  • Target: > 0.9 for good user experience
  • Investigation: Understand which transactions are degrading Apdex

Investigation Approach

1. Identify Performance Baseline

  • Establish normal behavior (historical data)
  • Compare current metrics to baseline
  • Detect anomalies and deviations
  • Consider time-of-day and seasonal patterns

2. Analyze Transaction Traces

  • Find slowest transactions
  • Examine span breakdown (app code, database, external services)
  • Identify bottlenecks in transaction flow
  • Look for N+1 query patterns

3. Examine Error Patterns

  • Group errors by type and message
  • Analyze stack traces for root cause
  • Check error frequency and affected transactions
  • Look for cascading failures

4. Correlate with Changes

  • Check recent deployments (code changes)
  • Review infrastructure changes (scaling, configuration)
  • Look for dependency changes (database, external APIs)
  • Consider traffic pattern changes

5. Analyze Service Dependencies

CRITICAL: Always check dependencies when investigating application issues.

Workflow:

  1. Discover Related Entities: Use list_related_entities with the application's entity GUID to find:

    • Upstream services (services this app calls)
    • Downstream services (services that call this app)
    • Connected databases
    • External APIs and integrations
  2. Check Dependency Health: For each related entity:

    • Query error rates and latency metrics
    • Compare health status against normal baselines
    • Look for cascading failures
  3. Correlate with Dependencies: Use the correlation_analysis skill to:

    • Link application errors with database slow queries
    • Correlate latency spikes with external service timeouts
    • Identify if upstream service failures are causing downstream errors

Example Query Pattern:

# After discovering database entity via list_related_entities
SELECT average(duration) FROM Span
WHERE entity.guid = '{DATABASE_GUID}'
FACET name
SINCE 1 hour ago

Common Dependency Issues:

  • Database connection pool exhaustion causing app errors
  • External API timeouts cascading to app latency
  • Upstream service high error rate causing downstream failures
  • Cache service issues causing increased database load

6. Identify Root Cause

Step 1: Use list_related_entities to discover dependencies

list_related_entities(entity_guid="{APP_GUID}")

This returns upstream/downstream services, databases, and external APIs.

Step 2: Query health of each dependency For each related entity, check:

  • Error ra
Полный SKILL.md на GitHub

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

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

  1. 01execute_nrql_query
  2. 02lookup_entity
  3. 03search_entity_with_tag
  4. 04list_recent_issues
  5. 05list_recent_deployments
  6. 06list_related_entities

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

  • references/ERROR_ANALYSIS.md
  • references/PERFORMANCE_METRICS.md

FAQ

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

Application Performance Monitoring and transaction analysis. Use when investigating application errors, slow response times, throughput issues, or transaction-level problems.

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

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

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

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

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

Сравнить apm с