New Relic CLI Skills
Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries and organization-scoped macros, AI Monitoring telemetry and…
от vince-winkintel2 648 установок в других каталогах
Установить New Relic CLI Skills в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
New Relic CLI Skills
Quick Decision Tree
Performance issue reported? → apm/SKILL.md
Need to query data or manage organization-scoped NRQL macros? → nrql/SKILL.md
AI/LLM telemetry, datasets, or dataset versions? → aimonitoring/SKILL.md
Recording a deployment? → deployments/SKILL.md
Inspecting alerts or incidents? → alerts/SKILL.md
Infrastructure/host issues? → infrastructure/SKILL.md
Agent not reporting? → diagnostics/SKILL.md
Users, groups, roles, permissions, or access grants? → iam/SKILL.md
Setup & Auth
For installation, use Homebrew on macOS or an official release archive. Scoop is
also permitted on Windows x86_64, but only after the
Scoop verification procedure:
add the official bucket, verify its source, inspect the selected manifest, and check
the exact archive URL, SHA-256, and executable path before the bucket-qualified
install. Stop on any missing or mismatched value; never use --skip-hash-check
(-s) or otherwise bypass checksum verification. The reference retains the exact
checked manifest/archive pair and historical failures; it does not clear future
selections automatically. For manual archives, compare the exact filename against
the same release's SHA-256 manifest (case-insensitive hex comparison) before
extraction. This checks integrity, not release authenticity; installation and
signatures were not verified. Confirm the selected version with newrelic --version
before configuring credentials.
# macOS (Homebrew)
brew install newrelic-cli
newrelic --version
# Configure profile
newrelic profile add \
--profile "default" \
--apiKey $NEW_RELIC_API_KEY \
--accountId $NEW_RELIC_ACCOUNT_ID \
--region US # US, EU, JP, GOV, or FEDRAMP (alias for GOV)
newrelic profile default --profile "default"
# Verify
newrelic profile list --format JSON
For structured profile discovery, pass --format JSON explicitly. The isDefault
field identifies the persisted default profile, and profile names are emitted without
terminal decoration. It does not necessarily identify the effective credentials: the
global --profile flag can select another profile, while NEW_RELIC_API_KEY,
NEW_RELIC_ACCOUNT_ID, NEW_RELIC_REGION, and NEW_RELIC_LICENSE_KEY override the
corresponding stored profile fields.
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"
# Discover diagnostic CLI flags without launching nrdiag.
# Before any diagnose run (even --list-suites), follow diagnostics/SKILL.md:
# explicit download/execution approval; separate authorization for data upload.
newrelic diagnose run --help
# Find applications reporting AI Monitoring telemetry
newrelic aimonitoring application search
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 APM application details
newrelic apm application get --guid <GUID>
# List all hosts
newrelic entity search --name "" --type HOST
Environment Variables
| Variable | Description |
|---|---|
NEW_RELIC_API_KEY |
User key (NRAK-...) |
NEW_RELIC_ACCOUNT_ID |
Numeric account ID |
NEW_RELIC_REGION |
US, EU, JP, GOV, or FEDRAMP (FEDRAMP is an alias for GOV) |
Sub-Skills
| Sub-skill | When to use |
|---|---|
apm/ |
Performance triage, slow transactions, error analysis |
nrql/ |
Custom queries, dashboards, ad-hoc exploration, and approval-gated organization macros |
aimonitoring/ |
AI/LLM telemetry, dataset discovery/version inventory, and approval-gated deletion |
deployments/ |
Mark releases, correlate deploys with performance |
alerts/ |
Read-only incident telemetry and entity alert severity |
infrastructure/ |
Host metrics, CPU/memory, process monitoring |
diagnostics/ |
CLI profile/connectivity validation, agent reporting, and approval-gated nrdiag suites |
iam/ |
Users, groups, memberships, roles, permissions, and access grants |
Scripts
| Script | Purpose |
|---|---|
scripts/check-performance.sh |
Quick health check across all apps |
| [`scripts/deployment-marker.sh |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл New Relic CLI Skills?
Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries and organization-scoped macros, AI Monitoring telemetry and datasets, APM performance triage, deployment markers, read-only alert and incident inspection, infrastructure monitoring, agent diagnostics, and identity/access administration. Use when user asks about LLM token usage, AI application telemetry or datasets, application performance, error rates, slow transactions, deployment tracking, incident inspection, New Relic setup, users, groups, roles, permissions, or access grants.
Как установить скилл New Relic CLI Skills?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл New Relic CLI Skills запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…