← 返回
数据分析 中文

Newrelic Cli Skills

Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries, APM performance triage, deployment markers, alert policy a...
通过 newrelic CLI 监控、查询和管理 New Relic 可观测性数据,支持 NRQL 查询、APM 性能排查、部署标记、告警策略等。
vince-winkintel
数据分析 clawhub v1.0.3 3 版本 99777.5 Key: 无需
★ 1
Stars
📥 877
下载
💾 4
安装
3
版本
#latest

概述

New Relic CLI Skills

Quick Decision Tree

Performance issue reported?apm/SKILL.md

Need to query data with NRQL?nrql/SKILL.md

Recording a deployment?deployments/SKILL.md

Alert management?alerts/SKILL.md

Infrastructure/host issues?infrastructure/SKILL.md

Agent not reporting?diagnostics/SKILL.md


Setup & Auth

# Install (manual or package manager)
# macOS (Homebrew)
brew install newrelic-cli

# Or manually download a release archive from:
# https://github.com/newrelic/newrelic-cli/releases
# Extract it, place the `newrelic` binary on your PATH, then verify with:
newrelic --version

# Configure profile
newrelic profile add \
  --profile default \
  --apiKey $NEW_RELIC_API_KEY \
  --accountId $NEW_RELIC_ACCOUNT_ID \
  --region US   # or EU

newrelic profile default --profile default

# Verify
newrelic profile list

Common One-Liners

# Search for an entity by name
newrelic entity search --name "my-app"

# Run a NRQL query
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID \
  --query "SELECT average(duration) FROM Transaction WHERE appName='my-app' SINCE 1 hour ago"

# Record a deployment
newrelic apm deployment create \
  --applicationId <APP_ID> \
  --revision "v1.2.3" \
  --description "Feature: user auth"

# Run diagnostics
newrelic diagnose run

Entity Reference

Find entity GUIDs (needed for API calls and deployment markers):

# List all APM apps
newrelic entity search --name "" --type APPLICATION --domain APM

# Get specific entity details
newrelic entity get --guid <GUID>

# List all hosts
newrelic entity search --name "" --type HOST

Environment Variables

VariableDescription
------
NEW_RELIC_API_KEYUser key (NRAK-...)
NEW_RELIC_ACCOUNT_IDNumeric account ID
NEW_RELIC_REGIONUS or EU

Sub-Skills

Sub-skillWhen to use
------
apm/Performance triage, slow transactions, error analysis
nrql/Custom queries, dashboards, ad-hoc data exploration
deployments/Mark releases, correlate deploys with performance
alerts/Alert policies, conditions, notification channels
infrastructure/Host metrics, CPU/memory, process monitoring
diagnostics/Agent health, config validation, connectivity

Scripts

ScriptPurpose
------
scripts/check-performance.shQuick health check across all apps
scripts/deployment-marker.shRecord a deployment event
scripts/top-slow-transactions.shFind the 10 slowest transactions
scripts/error-report.shRecent errors with stack traces

References

版本历史

共 3 个版本

  • v1.0.3 当前
    2026-03-29 08:48 安全 安全
  • v1.0.2
    2026-03-26 21:32
  • v1.0.1
    2026-03-07 02:00

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,856
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,240
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,005