newrelic-ops
Use when the user asks about New Relic data — application performance, errors, alerts, deployments, infrastructure, logs, NRQL queries, dashboards, or…
Skill by Ivlad003
Chalk Labs
Need help deploying newrelic-ops?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ivlad003-newrelic-ops
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/newrelic-ops
What's inside
- Skill name
newrelic-ops- Description
- Use when the user asks about New Relic data — application performance, errors, alerts, deployments, infrastructure, logs, NRQL queries, dashboards, or production incidents. Calls New Relic APIs directly via curl. Triggers on keywords like "new relic", "nrql", "apm", "alert violations", "error rate", "throughput", "transactions", "deployment markers".
- License
- MIT
- Instructions
- 244 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# New Relic Operations
Call New Relic NerdGraph (GraphQL) and REST v2 APIs directly via `curl`. No MCP server or Python dependencies needed.
## Prerequisites
Two environment variables must be set:
- `NEW_RELIC_API_KEY` — User API key (starts with `NRAK-`)
- `NEW_RELIC_ACCOUNT_ID` — Numeric account ID
Before the first API call in a session, verify they exist:
```bash
test -n "$NEW_RELIC_API_KEY" && test -n "$NEW_RELIC_ACCOUNT_ID" && echo "OK" || echo "MISSING: set NEW_RELIC_API_KEY and NEW_RELIC_ACCOUNT_ID"
```
If missing, ask the user to set them. Do NOT proceed without them.
## API Endpoints
| API | Endpoint | Auth Header |
|-----|----------|-------------|
| NerdGraph (GraphQL) US | `https://api.newrelic.com/graphql` | `API-Key: $NEW_RELIC_API_KEY` |
| NerdGraph (GraphQL) EU | `https://api.eu.newrelic.com/graphql` | `API-Key: $NEW_RELIC_API_KEY` |
| REST v2 US | `https://api.newrelic.com/v2/` | `Api-Key: $NEW_RELIC_API_KEY` |
Default to US endpoints. If the user mentions EU region, switch to EU endpoints.
## Core Operations
### 1. Run NRQL Query (most common)
```bash
curl -s -X POST https://api.newrelic.com/graphql \
-H 'Content-Type: application/json' \
-H "API-Key: $NEW_RELIC_API_KEY" \
-d "{\"query\": \"{ actor { account(id: $NEW_RELIC_ACCOUNT_ID) { nrql(query: \\\"SELECT count(*) FROM Transaction SINCE 1 HOUR AGO\\\") { results } } } }\"}" \
| python3 -m json.tool
```
Replace the NRQL inside `\\\"...\\\"` with the user's query.
**Common NRQL event types:**
| Event Type | Data |
|-----------|------|
| `Transaction` | APM request data (duration, status, name) |
| `TransactionError` | Errors with stack traces |
| `Log` | Log entries |
| `SystemSample` | Host CPU/memory/disk |
| `Metric` | Dimensional metrics |
| `SyntheticCheck` | Synthetic monitor results |
| `NrAiIncident` | Alert incidents |
| `Deployment` | Change tracking events |
**NRQL essentials:**
- Always include a time range: `SINCE 1 hour ago`, `SINCE 1 day ago`
- Use `FACET` for grouping: `FACET appName`, `FACET host`
- Use `TIMESERIES` for trends over time
- Use `LIMIT` to control result size (default 10)
- Use `WHERE error IS TRUE` to filter errors
- Use `COMPARE WITH 1 hour ago` to compare periods
### 2. Search Entities (apps, hosts, dashboards)
```bash
curl -s -X POST https://api.newrelic.com/graphql \
-H 'Content-Type: application/json' \
-H "API-Key: $NEW_RELIC_API_KEY" \
-d '{"query": "{ actor { entitySearch(queryBuilder: {domain: APM, type: APPLICATION}) { results { entities { name entityType guid accountId alertSeverity reporting } nextCursor } } } }"}' \
| python3 -m json.tool
```
**Domain/Type combinations:**
| Domain | Type | What |
|--------|------|------|
| `APM` | `APPLICATION` | APM applications |
| `INFRA` | `HOST` | Infrastructure hosts |
| `BROWSER` | `APPLICATION` | Browser apps |
| `MOBILE` | `APPLICATION` | Mobile apps |
| `VIZ` | `DASHBOARD` | Dashboards |
| `SYNTH` | `MONITOR` | Synthetic monitors |
**Search by name (freeform):**
```bash
curl -s -X POST https://api.newrelic.com/graphql \
-H 'Content-Type: application/json' \
-H "API-Key: $NEW_RELIC_API_KEY" \
-d "{\"query\": \"{ actor { entitySearch(query: \\\"name LIKE 'SERVICE_NAME' AND domain = 'APM'\\\") { count results { entities { name guid entityType alertSeverity } } } } }\"}" \
| python3 -m json.tool
```
### 3. Get Entity Details by GUID
```bash
curl -s -X POST https://api.newrelic.com/graphql \
-H 'Content-Type: application/json' \
-H "API-Key: $NEW_RELIC_API_KEY" \
-d '{"query": "{ actor { entity(guid: \"ENTITY_GUID_HERE\") { name entityType alertSeverity ... on ApmApplicationEntityOutline { apmSummary { errorRate apdexScore webResponseTimeAverage responseTimeAverage throughput hostCount instanceCount } } } } }"}' \
| python3 -m json.tool
```
### 4. Get Active Alerts
**Via REST v2 (simpler):**
```bash
curl -s -X GET 'https://api.newrelic.com/v2/alerts_violations.json?only_open=true' \
-H "Api-Key: $NEW_RELIC_API_KEY" \
| python3 -m json.tool
```
**Via NRQL (more flexible):**
```bash
curl -s -X POST https://api.newrelic.com/graphql \
-H 'Content-Type: application/json' \
-H "API-Key: $NEW_RELIC_API_KEY" \
-d "{\"query\": \"{ actor { account(id: $NEW_RELIC_ACCOUNT_ID) { nrql(query: \\\"SELECT * FROM NrAiIncident WHERE event = 'open' SINCE 1 day ago LIMIT 50\\\") { results } } } }\"}" \
| python3 -m json.tool
```From Ivlad003/plugins, MIT.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 20, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Ivlad003/plugins
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Ivlad003
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get newrelic-ops running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
newrelic-ops skill. Agent Mart. https://agentmart.dev/skills/ivlad003-newrelic-ops (last updated 2026-10-24)