newrelic-cli-diagnostics

子技能,用于诊断 New Relic 代理配置、API 连接、配置文件认证或通过 New Relic CLI 出现的遥测数据缺失问题。设置和路由请使用父技能 newrelic-cli-skills。

仓库最近推送
GitHub Stars
212
Forks
664
Issues / PRs
21

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "newrelic-cli-diagnostics":https://skillpi.com/zh/skills/deepskill-c92980c2f84b31de1192cf10647b195938f5f26b3ddcb4086c7494afd44b7b12。安装前核对上游来源和版本:https://github.com/Kilo-Org/kilo-marketplace。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

子技能,用于诊断 New Relic 代理配置、API 连接、配置文件认证或通过 New Relic CLI 出现的遥测数据缺失问题。设置和路由请使用父技能 newrelic-cli-skills。

0 下载

介绍来源: third_party · Kilo-Org · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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 US

版本历史

  1. skills-20261103210927-6c1b454 GitHub ↗
    原版更新说明

    Automated skills release from commit 6c1b4543cac1d45a80bf5904e4b69ac315117323

  2. skills-20260928190452-ff51758 GitHub ↗
    原版更新说明

    Automated skills release from commit ff51758b06b8249007116184096765d47bdb7505

  3. skills-20260924105536-d31110d GitHub ↗
    原版更新说明

    Automated skills release from commit d31110d62dc0bd00c22f1d6f6a630d1e702a0049

  4. skills-20260923085113-cea285e GitHub ↗
    原版更新说明

    Automated skills release from commit cea285ef0e4d6ec47cd2fd9fdbca03813a3363c7

  5. skills-20260922193956-97d7333 GitHub ↗
    原版更新说明

    Automated skills release from commit 97d7333d8200e5ac556c659c8669f3a83ba10866

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供 New Relic 代理配置、API 连接、遥测数据诊断等高价值运维能力
  • 面向可观测性领域,解决明确的运维痛点,实用性强
触发精准88/100

亮点

  • 触发描述清晰,覆盖代理配置、API 连接、认证、缺失遥测等典型场景
  • 边界明确,不易与其他 Skill 混淆
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档未明确说明何时使用此 Skill,影响用户快速判断适用性

    改进建议:建议在文档开头添加 When to Use 章节,说明典型使用场景

  • 缺少端到端完整示例 原报告严重程度:轻微

    虽有多个命令片段,但缺少一个完整的端到端诊断流程示例

    改进建议:建议添加一个完整的诊断流程示例,展示从问题发现到解决的完整过程

亮点

  • 文档结构清晰,分模块展示诊断命令、配置验证、实体检查等
  • 包含常见 Issues 表格,便于快速排查问题
执行可靠72/100

待提升项

  • 未覆盖命令执行失败异常 原报告严重程度:轻微

    未处理 jq 不存在、CLI 未安装等常见执行失败场景

    改进建议:建议添加前置依赖检查说明,或提供替代方案(如不使用 jq 的查询方式)

亮点

  • 基于 New Relic CLI 官方工具,参数使用合理
  • 覆盖主要异常场景(如 NrIntegrationError 判断),具备一定可靠性
证据可验 (前四项均值)80/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 24, 72, 118 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。