Write New Relic NRQL queries for error rate, latency percentiles, and throughput across services using entity and deployment attributes

domain: docs.newrelic.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Use FROM Transaction or FROM Span with WHERE appName = 'service' to scope queries to a specific service or entity
  2. Compute error rate with SELECT percentage(count(*), WHERE error IS true) FROM Transaction SINCE 1 hour ago TIMESERIES
  3. Query latency percentiles with SELECT percentile(duration, 50, 95, 99) FROM Transaction FACET appName SINCE 1 hour ago
  4. Join deployment marker data by querying FROM Deployment and correlating SINCE/UNTIL clauses with performance queries using COMPARE WITH
  5. Create a custom NRQL baseline alert condition using BASELINE direction UPPER_ONLY to detect anomalous spikes without a fixed threshold

Known gotchas

Related routes

Configure New Relic NRQL alert conditions for error rate and latency SLO thresholds
newrelic.com · 6 steps · unrated
Query and mutate New Relic data using the NerdGraph GraphQL API
docs.newrelic.com · 5 steps · unrated
Plan the New Relic NRQL Drop Filter Rules API EOL migration to Pipeline cloud rules
docs.newrelic.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans