newrelic-cli-skills

Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries, APM performance triage, deployment markers, alert management, infrastructure monitoring, and agent diagnostics. Use when user asks about application performance, error rates, slow transactions, deployment tracking, or New Relic configuration.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "newrelic-cli-skills" with this command: npx skills add vince-winkintel/newrelic-cli-skills

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
curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash

# 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Observability & Reliability Engineering

Complete observability & reliability engineering system. Use when designing monitoring, implementing structured logging, setting up distributed tracing, buil...

Registry SourceRecently Updated
0283
Profile unavailable
Security

Darkhunt Observability

Monitor OpenClaw agent runs with real-time traces showing decisions, tool usage, performance, costs, and user attribution for full observability.

Registry SourceRecently Updated
0127
Profile unavailable
Automation

AI Agent Observability

Evaluate and monitor AI agent fleets across six key dimensions to score health, identify issues, and optimize performance for ops teams managing 1-100+ agents.

Registry SourceRecently Updated
0364
Profile unavailable