newrelic-cli-apm
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "newrelic-cli-apm" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-45d0eb7c00f03fa88157766eaf64d2b7a8569c3005f466078248a64a6da2e180. Verify the upstream source and version against https://github.com/Kilo-Org/kilo-marketplace before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
This subskill is for initial troubleshooting of New Relic APM latency, throughput, database time, transaction errors, or performance degradation using the New Relic CLI and NRQL. For setup and routing, use the parent skill newrelic-cli-skills.
Introduction source: third_party · Kilo-Org · 0.0.1 Reference
SkillPi interpretation
- Tasks
- This subskill should be used when triaging New Relic APM latency, throughput, database time, transaction errors, or performance regressions with the New Relic CLI and NRQL. Use the parent newrelic-cli-skills skill for setup and routing.
- Testing
- Not tested
Browse files
Frontmatter
name: "newrelic-cli-apm"
description: "This subskill should be used when triaging New Relic APM latency, throughput, database time, transaction errors, or performance regressions with the New Relic CLI and NRQL. Use the parent newrelic-cli-skills skill for setup and routing."
metadata:
category: observability
source:
repository: "https://github.com/vince-winkintel/newrelic-cli-skills"
path: "apm"
license_path: "LICENSE"APM Performance Triage
Use when investigating slow endpoints, high error rates, or performance regressions.
Step 1: Identify the Problem App
# Get APM summary for all apps
newrelic entity search --name "" --type APPLICATION --domain APM | \
jq '.[] | {name, alertSeverity, applicationId}'
# Get detailed APM summary for a specific app
newrelic apm application get --applicationId <APP_ID>
Step 2: Slow Transaction Analysis
# Top 10 slowest transactions (last 1 hour)
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT average(duration), percentile(duration, 95), count(*)
FROM Transaction
WHERE appName = 'my-app'
FACET name
SINCE 1 hour ago
LIMIT 10
ORDER BY average(duration) DESC
"
# Transactions over SLA threshold (e.g. > 2 seconds)
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT count(*), average(duration)
FROM Transaction
WHERE appName = 'my-app' AND duration > 2
FACET name
SINCE 1 hour ago
"
Step 3: Database Query Analysis
# Slowest DB operations
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT average(duration), count(*)
FROM DatabaseTrace
WHERE appName = 'my-app'
FACET statement
SINCE 1 hour ago
LIMIT 10
ORDER BY average(duration) DESC
"
# DB time as % of total transaction time
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT average(databaseDuration), average(duration),
percentage(average(databaseDuration), average(duration)) AS 'DB %'
FROM Transaction
WHERE appName = 'my-app'
SINCE 1 hour ago
"
Step 4: Error Analysis
# Error rate by transaction
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT count(*), percentage(count(*), WHERE error IS true) AS 'Error Rate'
FROM Transaction
WHERE appName = 'my-app'
FACET name
SINCE 1 hour ago
"
# Recent errors with messages
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT message, count(*)
FROM TransactionError
WHERE appName = 'my-app'
FACET message
SINCE 1 hour ago
LIMIT 20
"
# Full error details including stack trace fields
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT timestamp, name, message, error.class
FROM TransactionError
WHERE appName = 'my-app'
SINCE 30 minutes ago
LIMIT 10
"
Step 5: Throughput & Apdex
# Requests per minute + Apdex trend
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT rate(count(*), 1 minute) AS 'RPM', apdex(duration, 0.5) AS 'Apdex'
FROM Transaction
WHERE appName = 'my-app'
TIMESERIES 5 minutes
SINCE 1 hour ago
"
Step 6: Correlate with Deployments
# List recent deployments
newrelic apm deployment list --applicationId <APP_ID>
# Check if performance changed after a deploy
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT average(duration)
FROM Transaction
WHERE appName = 'my-app'
TIMESERIES 10 minutes
SINCE 3 hours ago
"
# Look for inflection points that align with deployment timestamps
Get Application IDs
newrelic entity search --name "my-app" --type APPLICATION --domain APM | \
jq '.[] | {name, applicationId, guid}'Version history
-
skills-20261103210927-6c1b454
GitHub ↗
Original release notes
Automated skills release from commit 6c1b4543cac1d45a80bf5904e4b69ac315117323
-
skills-20260928190452-ff51758
GitHub ↗
Original release notes
Automated skills release from commit ff51758b06b8249007116184096765d47bdb7505
-
skills-20260924105536-d31110d
GitHub ↗
Original release notes
Automated skills release from commit d31110d62dc0bd00c22f1d6f6a630d1e702a0049
-
skills-20260923085113-cea285e
GitHub ↗
Original release notes
Automated skills release from commit cea285ef0e4d6ec47cd2fd9fdbca03813a3363c7
-
skills-20260922193956-97d7333
GitHub ↗
Original release notes
Automated skills release from commit 97d7333d8200e5ac556c659c8669f3a83ba10866
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 APM 性能排查端到端流程,覆盖慢事务、数据库、错误、吞吐量等核心维度
- 面向 SRE/DevOps 高频刚需场景,实用价值高
Highlights
- 触发描述精准,明确限定于 New Relic APM 性能问题排查
- 清晰区分本技能与父技能的职责边界
Highlights
- 6 个排查阶段划分清晰,每步有具体命令和用途说明
- frontmatter 完整,示例丰富且可直接执行
Areas to improve
-
缺少异常处理说明 Reported severity: Minor
未覆盖 NRQL 查询失败、权限不足、网络错误等常见异常场景的处理建议
Recommendation: 建议在文档末尾添加 Troubleshooting 章节,说明常见错误及应对方法
-
未声明外部依赖 Reported severity: Minor
部分命令依赖 jq 工具解析 JSON,但未在文档中说明
Recommendation: 在 prerequisites 或 setup 部分明确列出所需工具(newrelic CLI, jq)
-
缺少 When to Use 显式章节 Reported severity: Minor
虽有触发描述,但未以独立章节形式呈现使用时机
Recommendation: 在 Step 1 前添加 When to Use 章节,强化触发认知
Highlights
- 所有命令基于官方 New Relic CLI,参数规范,时间范围明确
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.