Newrelic

From Arvo-AI/aurora · View interactive version

Newrelic is an AI agent skill from the GitHub repository Arvo-AI/aurora. New Relic observability integration for running NRQL queries, checking alert issues, and searching entities via NerdGraph during RCA investigations

How to use this skill

Skill file

New Relic Integration

Overview

New Relic integration for querying observability data during Root Cause Analysis. New Relic is a REMOTE service. Use ONLY the query_newrelic API tool. All data is accessed via NerdGraph with resource_type parameter.

Instructions

Tool Usage

query_newrelic(resource_type=TYPE, query=QUERY, time_range=RANGE, limit=N)

Resource Types

  1. 'nrql' -- Run NRQL queries. query=NRQL string e.g. "SELECT count(*) FROM Transaction WHERE error IS true FACET appName"
  2. 'issues' -- Active alert issues. query=state filter (ACTIVATED, CREATED, CLOSED)
  3. 'entities' -- Search monitored entities (APM apps, hosts). query=entity name or filter

NRQL Tips

Common NRQL Queries

Entity Search

Examples

RCA Investigation Workflow

Step 1 -- Check alert issues for active/related context:

query_newrelic(resource_type='issues', query='ACTIVATED')

Step 2 -- Search entities to identify affected services and hosts:

query_newrelic(resource_type='entities', query='affected-service')

Step 3 -- Use NRQL to query transactions and errors around the alert time:

query_newrelic(resource_type='nrql', query="SELECT count(*) FROM TransactionError FACET appName SINCE 1 hour ago TIMESERIES")

Step 4 -- Check infrastructure metrics:

query_newrelic(resource_type='nrql', query="SELECT average(cpuPercent), average(memoryUsedPercent) FROM SystemSample FACET hostname SINCE 1 hour ago")

Step 5 -- Correlate with logs:

query_newrelic(resource_type='nrql', query="SELECT count(*) FROM Log WHERE level = 'ERROR' FACET service, message SINCE 1 hour ago")

Important Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.