newrelic-cli-diagnostics
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-diagnostics" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c92980c2f84b31de1192cf10647b195938f5f26b3ddcb4086c7494afd44b7b12. 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
Subskill used to diagnose New Relic agent configuration, API connections, profile authentication, or missing telemetry issues surfaced via the New Relic CLI. 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 diagnosing New Relic agent configuration, API connectivity, profile authentication, or missing telemetry with the New Relic CLI. Use the parent newrelic-cli-skills skill for setup and routing.
- Testing
- Not tested
Browse files
Frontmatter
name: "newrelic-cli-diagnostics"
description: "This subskill should be used when diagnosing New Relic agent configuration, API connectivity, profile authentication, or missing telemetry with the New Relic CLI. 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: "diagnostics"
license_path: "LICENSE"Agent Diagnostics
Validate New Relic agent configuration, connectivity, and reporting status.
Run Full Diagnostics
newrelic diagnose run
Checks: API key validity, account connectivity, agent config files, log paths, proxy settings.
Validate Config File
# For .NET agent on Windows
newrelic diagnose validate \
--config "C:\ProgramData\New Relic\.NET Agent\newrelic.config"
# For Linux
newrelic diagnose validate --config /etc/newrelic/newrelic.yml
Check Agent is Reporting
# Verify an app is actively sending data
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT count(*)
FROM Transaction
WHERE appName = 'my-app'
SINCE 10 minutes ago
"
# count = 0 means agent is not reporting
# Check entity reporting status
newrelic entity search --name "my-app" --type APPLICATION --domain APM | \
jq '.[] | {name, reporting}'
Check Agent Version
newrelic entity search --name "my-app" --type APPLICATION --domain APM | \
jq '.[] | {name, tags: (.tags[] | select(.key == "agentVersion"))}'
Connectivity Test
# Test API key and account access
newrelic profile list
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID \
--query "SELECT count(*) FROM NrIntegrationError SINCE 1 hour ago"
If NrIntegrationError count > 0, data ingestion has issues.
Common Issues
| Symptom | Likely Cause | Fix |
|---|---|---|
App shows reporting: false |
Agent stopped or config missing | Restart app pool / check agent logs |
| Transaction count = 0 | IIS app pool recycled without agent init | Ensure agent auto-instruments on startup |
High NrIntegrationError |
Data too large or malformed | Check agent logs for serialization errors |
alertSeverity: NOT_CONFIGURED |
No alert conditions on the entity | Add NRQL or APM metric conditions |
.NET Agent Specific (Windows/IIS)
# Check which apps are instrumented on a host
newrelic entity search --name "my-host" --type HOST | \
jq '.[] | .tags[] | select(.key == "apmApplicationNames")'
# Agent logs location (Windows)
# C:\ProgramData\New Relic\.NET Agent\Logs\
Profile Management
# List all profiles
newrelic profile list
# Switch profile
newrelic profile default --profile production
# Add a new profile
newrelic profile add \
--profile staging \
--apiKey $NEW_RELIC_API_KEY \
--accountId $NEW_RELIC_ACCOUNT_ID \
--region USVersion 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
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 New Relic 代理配置、API 连接、遥测数据诊断等高价值运维能力
- 面向可观测性领域,解决明确的运维痛点,实用性强
Highlights
- 触发描述清晰,覆盖代理配置、API 连接、认证、缺失遥测等典型场景
- 边界明确,不易与其他 Skill 混淆
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明何时使用此 Skill,影响用户快速判断适用性
Recommendation: 建议在文档开头添加 When to Use 章节,说明典型使用场景
-
缺少端到端完整示例 Reported severity: Minor
虽有多个命令片段,但缺少一个完整的端到端诊断流程示例
Recommendation: 建议添加一个完整的诊断流程示例,展示从问题发现到解决的完整过程
Highlights
- 文档结构清晰,分模块展示诊断命令、配置验证、实体检查等
- 包含常见 Issues 表格,便于快速排查问题
Areas to improve
-
未覆盖命令执行失败异常 Reported severity: Minor
未处理 jq 不存在、CLI 未安装等常见执行失败场景
Recommendation: 建议添加前置依赖检查说明,或提供替代方案(如不使用 jq 的查询方式)
Highlights
- 基于 New Relic CLI 官方工具,参数使用合理
- 覆盖主要异常场景(如 NrIntegrationError 判断),具备一定可靠性
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.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 24, 72, 118
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.