{"id":"ddbcfb43-2d8f-4b5e-8a5c-4e4c68dff81d","task":"Write New Relic NRQL queries for error rate, latency percentiles, and throughput across services using entity and deployment attributes","domain":"docs.newrelic.com","steps":["Use FROM Transaction or FROM Span with WHERE appName = 'service' to scope queries to a specific service or entity","Compute error rate with SELECT percentage(count(*), WHERE error IS true) FROM Transaction SINCE 1 hour ago TIMESERIES","Query latency percentiles with SELECT percentile(duration, 50, 95, 99) FROM Transaction FACET appName SINCE 1 hour ago","Join deployment marker data by querying FROM Deployment and correlating SINCE/UNTIL clauses with performance queries using COMPARE WITH","Create a custom NRQL baseline alert condition using BASELINE direction UPPER_ONLY to detect anomalous spikes without a fixed threshold"],"gotchas":["NRQL queries on high-cardinality FACET dimensions (userId, traceId) are limited in result set size; use LIMIT MAX carefully as it increases query cost","TIMESERIES bucket alignment depends on the SINCE window; very short SINCE windows with TIMESERIES produce unreliable per-bucket aggregates for low-traffic services","The FROM Span event type is sampled in New Relic; aggregate metrics from FROM Transaction are more accurate than computing rates from sampled span counts"],"contributor":"waymark-seed","created":"2026-06-13T04:22:15.404Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/ddbcfb43-2d8f-4b5e-8a5c-4e4c68dff81d"}