Analyzing performance test results with Grafana and Prometheus
A load test can generate millions of requests without revealing why response times climbed. Grafana and Prometheus turn raw activity into a time-based record of throughput, latency, errors, saturation and dependency behaviour. Useful analysis begins after execution: identify when the system changed, which constraint moved with it, and whether the result is a repeatable regression or a noisy one-off.
For Australian delivery teams, local context matters. Workloads are often hosted in Sydney or Melbourne, while users and load generators can sit in Brisbane or Perth; an east-coast test can hide a slow interstate or overseas path. Before formal review, teams often have a quick sanity check over the raw dashboard, then compare the evidence against agreed service objectives and the capacity expected for the next business peak.
Turn test output into useful signals
Begin with the workload model because dashboards cannot repair an unrealistic scenario. State the virtual-user or arrival-rate pattern, think time, data mix, dependency calls and test phases. Separate warm-up, steady-state, stress, spike, soak and recovery windows so every result can be tied to a deliberate operating condition rather than an arbitrary timestamp.
Capture service-level and saturation metrics together. Request rate and successful transaction throughput show delivered load; p50, p95 and p99 latency expose the distribution and its tail; the error ratio separates failed work from slow work. Add CPU, memory, garbage collection, thread and connection-pool use, queue depth, database locks, disk latency and network throughput. A latency increase without this context identifies a symptom, not its cause.
Give every run a unique, low-cardinality label set covering the environment, build, test type, scenario and generator group. Record start and end timestamps, configuration changes and aborted steps as annotations. Keep the raw samples and configuration beside the dashboard: a chart is difficult to defend when the team cannot reproduce the traffic mix, dependency responses or cache state that produced it.
Prepare Prometheus for reliable data
Prometheus should collect the metrics that describe both demand and system behaviour. Expose counters for completed requests, histograms for request duration, and gauges for active workers, queue size and pool occupancy. Use push gateways only for jobs that cannot be scraped, and record consistent metric names across comparable services so Grafana panels and PromQL queries remain reusable.
Because counters reset when a process restarts, calculate request and error rates rather than reading raw totals. A typical p95 query is histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket{job="checkout-api"}[5m]))); an error ratio can be sum(rate(http_requests_total{job="checkout-api",status=~"5.."}[5m])) / sum(rate(http_requests_total{job="checkout-api"}[5m])). Match the range window to the traffic phase, and verify that histogram buckets are fine enough for the latency threshold being judged.
Watch cardinality and scrape cost. Never label a metric with request IDs, email addresses or other unbounded values; each new series consumes memory and can destabilise Prometheus. Choose a scrape interval that captures meaningful spikes without generating excessive samples, and retain enough history for baseline comparisons. If remote storage or long-term analysis is required, plan that architecture before a large campaign rather than after the dashboard has already lost useful resolution.
Build Grafana dashboards for diagnosis
Build the Grafana dashboard in layers. Start with an overview of arrival rate, completed throughput, error percentage, p95 and p99 latency, and saturation of the suspected limiting resource. Add transaction-level panels below it, followed by service and infrastructure views that can be opened from the same time range. Keep units, aggregation methods and legends consistent, so engineers move between levels without relearning the chart.
Use dashboard variables for environment, build, scenario and data set, then annotate phase changes, deployments, dependency incidents and load-generator adjustments. A vertical marker at the point where queue depth rises is often more informative than a red threshold. Link each run to its test script, monitoring configuration and engineering ticket so investigation continues outside the dashboard and findings can feed backlog planning.
Avoid presentations that conceal the important signal. Averages can hide a failing tail; dual-axis charts can imply a relationship that the data does not support; and autoscaling can make CPU appear stable while latency and cost rise. Display whether a threshold was breached for a sustained interval rather than for one scrape, and show the actual traffic achieved. Otherwise, a green status may simply mean the test did not apply enough pressure.
Compare runs and isolate regressions
Select a defensible baseline using the same workload mix, duration, data volume, cache condition and dependency setup. Then compare rates and distributions, not just a single total. Calculate the percentage change in p95 latency, error rate and achieved throughput, while noting absolute changes in milliseconds or transactions per second. A ten-millisecond increase may matter in one API and be irrelevant in another.
Repeat critical scenarios enough times to expose natural variation, especially in shared cloud environments. Use the median result for routine reporting and retain the spread or confidence interval for high-risk decisions. A regression gate should combine a service threshold, a sustained time window and a minimum sample size; it should not fail a release because one scrape crossed a line or one unusually quiet run looked faster.
Make comparisons readable for stakeholders. In Grafana, place the current run and baseline in aligned panels or use a data-source comparison that applies the same query to both. Summarise capacity headroom, the first constrained component and confidence in the result. Record what changed between runs, since a regression caused by data growth, a slower dependency or an application release calls for different corrective work.
Account for distributed and Australian conditions
Australian geography can influence what the test proves. A generator in Sydney may show a clean result for a Sydney-hosted API while missing the latency seen by users in Perth or traffic routed through Singapore. Place generators close to representative users, record region and route, and include realistic network delay and bandwidth limits. Repeat from another location when the service has interstate or international consumers.
Scheduling also needs care across AEDT and AEST. Daylight-saving changes shift traffic relative to UTC, while teams distributed between Perth, Brisbane and the east coast may interpret dashboards in different time zones. Store and annotate all test events in UTC, with Australian local time beside them where operations depend on it. Model peaks such as Clicky, Black Friday and end-of-financial-year batch reporting instead of treating every hour as equivalent.
Containerised load generators and monitoring agents should not become an unprotected path into the test environment. Restrict ingress, use authentication and encryption, rotate credentials and apply least privilege to exposed metrics. The team's container security guidance outlines relevant practices for Docker and Kubernetes. Also note shared tenancy, noisy neighbours and managed-service quotas, since an apparent application bottleneck may originate below the tested service.
Turn observations into engineering decisions
Interpret the combined signals rather than the busiest chart. Throughput that plateaus while p99 latency and queue depth rise suggests a constrained service. High latency with low CPU utilisation can point to database locks, connection waits or an external dependency. A sudden tail increase may indicate garbage collection, retries or uneven instance health. For rough capacity reasoning, Little's Law ties average concurrency, arrival rate and response time together, but validate the estimate with controlled load increases.
Turn the diagnosis into an engineering decision: scale the constrained tier, optimise a query or cache, change a timeout, remove a serial dependency or revise the workload model. Record the expected gain and retest the same scenario. If the limit comes from an external provider, define retry and fallback behaviour so the customer experience remains within the agreed service objective.
A clear division of responsibility prevents the tools from being used interchangeably:
| Concern | Prometheus | Grafana |
|---|---|---|
| Primary job | Stores time-series metrics and evaluates PromQL | Presents metrics and coordinates dashboards |
| Main strength | Scalable collection, recording rules and threshold rules | Flexible panels, variables, annotations and shareable views |
| Common limitation | High-cardinality labels and local retention can strain it | It is not the primary metric store or load generator |
| Best performance-test use | Calculates rates, percentiles, saturation and objective thresholds | Compares runs, exposes bottlenecks and supports joint review |
The approach should fit the delivery model. Many Australian organisations combine internal quality teams with specialist testing consultancies, recruitment and training because performance engineering, observability and capacity planning need scarce skills. Assign each action to an owner, attach it to a build or infrastructure change, and schedule a verification run. A result becomes useful when the team can trace it from dashboard evidence to a changed component and a verified improvement.
Start the next cycle with a short performance-testing assessment: define the target workload and service thresholds, confirm Prometheus instrumentation and histogram resolution, then validate one representative Grafana dashboard under a controlled load. That baseline gives engineers a shared view of delivered traffic, customer impact and saturation before a release campaign adds complexity.
For teams needing an independent view of load strategy, observability or capacity, the nFocus software testing team provides assessment, managed delivery, test automation, recruitment and training across Agile, DevOps and Microsoft environments. Book a performance-testing assessment with nFocus and leave the session with a prioritised test strategy, agreed service thresholds, an actionable dashboard plan and clear ownership for the next bottleneck.