apm
Application Performance Monitoring and transaction analysis. Use when investigating application errors, slow response times, throughput issues, or…
от 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:
- Use
analyze_golden_metrics- Automatically fetches and analyzes throughput, error rate, latency, and resource usage for an entity - Use
list_top_transactions- Gets top transactions by volume, latency, or error rate - Use
analyze_transactions- Analyzes specific transaction patterns and performance - 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:
Discover Related Entities: Use
list_related_entitieswith 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
Check Dependency Health: For each related entity:
- Query error rates and latency metrics
- Compare health status against normal baselines
- Look for cascading failures
Correlate with Dependencies: Use the
correlation_analysisskill 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
execute_nrql_query - 02
lookup_entity - 03
search_entity_with_tag - 04
list_recent_issues - 05
list_recent_deployments - 06
list_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), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…