What you will learn in this TP
- Choose the right NRQL function for each question
- Compare two periods
- Build a dashboard with a variable
- Export a dashboard
All steps and instructions are shown. Recommended for this lab: semi-guided
Introduction #
Context. The product manager wants a single dashboard to follow the shop, and figures to answer their questions: which orders are slow, how many fail, is it worse than yesterday?
Prerequisites: a free New Relic account (license key), a machine with Docker, curl and jq · Estimated time: 45 min
Five NRQL analysis queries and a four-widget "Boutique" dashboard, exported as JSON.Setup #
Guided steps, with their solution.
1. Measure perceived latency
Why? The average hides slow orders; percentiles show them.
Compare average, median, p95 and p99 ofdurationforboutique-tp, then show the distribution.2. Compute an error rate
Why? A percentage compares across periods, a raw count depends on traffic.
Compute the error rate in a single query, as a chart, and compare it with the day before.3. Categorize orders
Why? Readable categories speak to product better than milliseconds.
Split transactions into fast (< 0.5 s), ok (< 2 s) and slow, then count 2xx and 5xx in the same query withfilter().4. Link traces and logs
Why? Logs in context carry the trace ID: you find the lines of a failed request.
Find thetrace.idof a failed transaction, then the logs carrying that same ID.5. Build the dashboard
Why? A shared board saves everyone from rewriting the same queries and gives a common view during an incident.
Create the Boutique dashboard with anappvariable (query onappName) and four widgets: Apdex (billboard with thresholds), throughput and errors (line), p95 per transaction (bar, facet linking on), distribution (histogram). Then export the JSON (Copy JSON to clipboard).
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Automating Grafana: HTTP API, Terraform and dashboard lifecycle
Industrializing Grafana: HTTP API (folders, dashboards, users, data sources), Terraform provider,...
Dashboards, reports and alerts in Splunk
Making the most of Splunk searches: reports and scheduling, Dashboard Studio dashboards (data sou...
Prometheus: visualizing your metrics (UI, Grafana and dashboards)
Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...
Linking traces and profiles: span profiles with Tempo and Pyroscope
Go from a slow trace to the exact CPU profile of that span: span profiles in Go and Java, configu...
New Relic: the observability platform at a glance
Discover New Relic: history, the unified platform and NRDB, MELT data types, entities and golden ...
New Relic APM: agents, OpenTelemetry and distributed traces
Instrumenting applications with New Relic: language agents, configuration, transactions and Apdex...
Infrastructure, logs and Kubernetes with New Relic
Monitoring servers, containers and Kubernetes with New Relic: infrastructure agent, on-host integ...
Digital experience: Browser, mobile and Synthetics
Measuring what users experience with New Relic: browser agent (page load, Core Web Vitals, AJAX, ...
Automating New Relic and controlling costs
Managing New Relic as code and keeping the bill under control: NerdGraph API, newrelic CLI, newre...