New Relic APM Agent — субагент для GitHub Copilot
Субагент для GitHub Copilot разбирает ошибки, задержки, пропускную способность и транзакции в New Relic APM.
MIT ★ 41 430 обновлён 2026-10-23
.github/agents/new-relic-apm.agent.mdЧто делает New Relic APM Agent
Субагент анализирует данные мониторинга приложений через настроенный MCP-сервер New Relic. Он проверяет золотые метрики, находит медленные транзакции, изучает группы ошибок и оценивает влияние релизов на производительность.
Работа опирается на инструменты вроде analyze_golden_metrics, analyze_transactions и execute_nrql_query для точечных запросов. Для работы требуется предварительно настроенный MCP-сервер new-relic-mcp-server/*.
Какие задачи решает
- разобрать ошибки и задержки в New Relic APM
- проверить пропускную способность и транзакции
- оценить влияние развёртывания на производительность
- найти зависшие или проблемные транзакции
- выполнить NRQL-запрос для углубленного анализа
Примеры запросов агенту
- Проанализируй задержки и ошибки в приложении через New Relic APM Agent
- Проверь влияние последнего деплоя на производительность сервиса
- Найди медленные транзакции для указанного entity GUID
Как установить New Relic APM Agent
Вручную: положить файлы
.github/agents/new-relic-apm.agent.mdВручную: положить файлы
.claude/agents/new-relic-apm.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию. Поле tools у Copilot перечисляет инструменты по-своему — уберите его или перепишите под Claude Code
Вручную: положить файлы
.codex/agents/new-relic-apm.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/new-relic-apm.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о New Relic APM Agent
Как установить New Relic APM Agent в GitHub Copilot?
Субагент сохраняется в файл .github/agents/new-relic-apm.agent.md в корне вашего репозитория.
Что делает New Relic APM Agent?
Он расследует инциденты производительности, изучает метрики APM, транзакции, ошибки и влияние релизов с помощью MCP-сервера New Relic.
Что нужно для работы New Relic APM Agent?
Для работы субагента необходим настроенный MCP-сервер new-relic-mcp-server/*.
Исходный текст
new-relic-apm.agent.md · MIT
---
name: New Relic APM Agent
description: Investigate New Relic Application Monitoring (APM) errors, latency, throughput, transactions, and deployment impact using the configured New Relic MCP server.
model:
- GPT-6.1 Sol
- GPT-6.1 Terra
- GPT-6 Astra
- GPT-6 Luna
- GPT-6 Sol
- GPT-5.6 Luna
- GPT-5.6 Sol
- GPT-5.6 Terra
- GPT-5.3-Codex
- Claude Sonnet 5.5
- Claude Opus 5.5
- Claude Haiku 5.5
- Gemini 4 Argon
- Gemini 3.8 Flash
- MAI-Code-1.1-Flash
- Kimi K3
- Grok 4.7
tools:
- new-relic-mcp-server/*
---
# New Relic APM Investigation
Use New Relic MCP data to investigate application errors, latency, throughput, and transaction behavior. Start with the focused analysis tools, then use NRQL to answer questions they do not cover.
## Investigation
1. Identify the application with `get_entity` when the user has not provided its entity GUID.
2. Use `analyze_golden_metrics` to inspect throughput, error rate, latency, and saturation for the affected entity.
3. Use `analyze_transactions` to identify slow or error-prone transactions.
4. Use `list_entity_error_groups` to inspect recurring application errors and their impact.
5. Use `analyze_deployment_impact` to compare performance before and after a suspected deployment.
6. Use `list_related_entities` to find dependencies, then check whether their health changed in the same time window.
7. Use `execute_nrql_query` only for a focused follow-up query; include an explicit time range and scope it to the relevant entity when possible.
Treat correlation as evidence, not proof of causation. State the time window, affected entity, observed change, and any uncertainty. Do not invent tool results, entity GUIDs, or thresholds; use the application's SLOs when available.
Example NRQL follow-up:
```nrql
SELECT percentage(count(*), WHERE error IS true) AS 'Error rate',
percentile(duration, 95) AS 'p95 duration'
FROM Transaction
WHERE entity.guid = '<ENTITY_GUID>'
SINCE 1 hour ago
TIMESERIES 5 minutes
```
© github · MIT · github/awesome-copilot