skills/newrelic-cli-skills/diagnostics/SKILL.md
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.
npx skillsauth add kilo-org/kilo-marketplace newrelic-cli-diagnosticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Validate New Relic agent configuration, connectivity, and reporting status.
newrelic diagnose run
Checks: API key validity, account connectivity, agent config files, log paths, proxy settings.
# 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
# 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}'
newrelic entity search --name "my-app" --type APPLICATION --domain APM | \
jq '.[] | {name, tags: (.tags[] | select(.key == "agentVersion"))}'
# 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.
| 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 |
# 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\
# 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
development
Oracle Database guidance for SQL, PL/SQL, SQLcl, ORDS, administration, app development, performance, security, migrations, and agent-safe database workflows. Use when the user asks to write, edit, rewrite, review, format, debug, tune, or explain SQL; create or refactor PL/SQL; use SQLcl, Liquibase, ORDS, JDBC, node-oracledb, Python, Java, .NET, or database frameworks; troubleshoot queries, sessions, locks, waits, indexes, optimizer plans, AWR, ASH, migrations, schemas, users, roles, privileges, backup, recovery, Data Guard, RAC, multitenant, containers, monitoring, auditing, encryption, VPD, or safe agent database operations.
documentation
Patterns for reading and writing oleander Iceberg catalog tables in Spark jobs, including naming conventions, write modes, and catalog hierarchy.
data-ai
Integrate Okta for enterprise identity workflows including OIDC login, group claims, and policy-based access controls. Use when implementing workforce or B2B identity scenarios.
documentation
Use when arranging Apache NiFi processors, process groups, ports, comments, numbering, crossing connections, dense fan-in/fan-out, or reusable readable canvas layouts.