newrelic-observability

Run NRQL queries and retrieve APM performance summaries from New Relic.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill newrelic-observability-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: newrelic-observability
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/observability-newrelic
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill newrelic-observability-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) components.

What problem does it solve? Investigating application performance issues in New Relic normally requires manual dashboard navigation and hand-written NRQL queries. This Skill lets you query response times, throughput, error rates, and Apdex scores directly from your AI assistant during incident investigation. ## Core Features & Use Cases - NRQL Query Execution: Run arbitrary NRQL queries against a New Relic account via the GraphQL API and get structured JSON results. - APM Summary Reports: Retrieve response time, throughput, error rate, and Apdex for a named application in one call. - Use Case: During an incident, ask for the error rate trend of your checkout service over the last hour, then drill into the slowest transactions to identify the root cause without opening the New Relic UI. ## Quick Start Use the New Relic skill to get an APM summary for the application 'checkout-service' over the last 30 minutes and show its error rate trend.

Frequently Asked Questions about newrelic-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run NRQL queries from the command line?

Run the query_nrql.py script with --account-id and --query arguments to execute any NRQL statement against New Relic's GraphQL API. Results are returned as formatted JSON including the result count and rows.

How to check application error rate in New Relic?

Use get_apm_summary.py with the application name to get error rate, response time, throughput, and Apdex in one call. Alternatively, run an NRQL query like SELECT percentage(count(*), WHERE error = true) FROM Transaction.

Do I need a New Relic API key set in my environment?

In proxy mode, credentials are injected automatically and no NEWRELIC_API_KEY is needed. In direct mode, set NEWRELIC_API_KEY, or set NEWRELIC_BASE_URL to route requests through a proxy endpoint.

Why does the New Relic script fail with a configuration error?

The client raises an error when neither NEWRELIC_BASE_URL nor NEWRELIC_API_KEY is set, since it cannot determine the API endpoint. Set one of these environment variables before running the scripts.

What NRQL queries are useful for performance investigation?

Common queries include average(duration) for response time, count(*) for throughput, percentage with error filter for error rate, and apdex(duration, t: 0.5) for Apdex score, all scoped with SINCE and TIMESERIES clauses.