Key takeaway
- Learn how AWS X-Ray traces requests across services and how Grafana visualises them, with setup steps, monitoring use cases and the move to OpenTelemetry.
AWS X-Ray is a distributed tracing service that follows a request across the services that handle it, and Grafana can query those traces and show them on dashboards next to your other monitoring data. Together they let a team see where a request slowed down or failed instead of inspecting each service log on its own.
This guide is for platform, DevOps and site reliability engineers who run distributed applications on AWS and want one view of request health. It covers how X-Ray works, how to connect it to Grafana, what to monitor, and an important change in how AWS now recommends instrumenting applications. For the wider AWS toolset, see our notes on leading AWS DevOps tools and AWS cloud management and governance solutions.
What is AWS X-Ray and why pair it with Grafana?
The AWS X-Ray developer guide describes X-Ray as a service that "collects data about requests that your application serves" and provides tools to view, filter and gain insights into that data. The trace data covers the request and response and also the calls your application makes to downstream AWS resources, microservices, databases and web APIs.
X-Ray gives you the trace. Grafana gives you the place where traces sit beside metrics and logs. The Grafana plugin documentation says the plugin lets you query and visualise AWS Application Signals services and AWS X-Ray traces in Grafana, explore distributed traces, inspect service maps and monitor service level objectives. Teams that already run Grafana for infrastructure metrics avoid a second console for tracing.
How does X-Ray tracing work?
Your application is instrumented so that it sends trace data for incoming and outbound requests. According to the guide, each client SDK sends JSON segment documents to a daemon process listening for UDP traffic, and the X-Ray daemon buffers segments in a queue and uploads them to X-Ray in batches. From that trace data X-Ray generates a trace map that shows the client, your front-end service and the backend services it calls, which you can use to find bottlenecks and latency spikes.
| Component | What it does | Where it is documented |
|---|---|---|
| X-Ray service | Collects trace data about requests and builds the trace map | AWS X-Ray developer guide |
| Instrumentation (SDK or OpenTelemetry) | Sends trace data for incoming and outbound requests | AWS X-Ray developer guide |
| X-Ray daemon | Buffers segments and uploads them to X-Ray in batches | AWS X-Ray developer guide |
| Grafana plugin | Queries traces and service maps from X-Ray and Application Signals | Grafana plugin documentation |
| Grafana dashboards | Show trace statistics, service maps and alerts beside other data | Grafana plugin documentation |
How do you connect X-Ray to Grafana?
The plugin was formerly named the AWS X-Ray data source and now appears as the AWS Application Signals data source, so you may see either name. The plugin page lists Grafana 10.4.0 or later as a requirement. Authentication and installation are covered in the plugin configuration guide, so follow that rather than a generic recipe.
- Turn on tracing for the workloads you care about and confirm trace data is reaching X-Ray in the AWS console.
- Install and configure the data source in Grafana using the plugin documentation, with an AWS identity that is allowed to read X-Ray data.
- Create a dashboard and add a panel that uses the X-Ray data source. Filter traces by service, error status or time range.
- Show service maps in the Node graph panel and trace statistics as time series.
- Build alert rules on numeric Trace Statistics queries, which the plugin documentation says are supported.
- Review the dashboards with the teams that own each service and adjust them as the application changes.
What can you monitor with X-Ray traces in Grafana?
| Use case | What you look at | Why it helps |
|---|---|---|
| Latency and errors | Trace statistics per service and time range | Shows which service adds delay or raises errors |
| Service dependencies | Service map in the Node graph panel | Shows which downstream service sits behind a failing request |
| Single request debugging | An individual trace and its annotations | Follows one request through every call it made |
| Alerting | Alert rules on numeric trace statistics | Notifies owners when a threshold is crossed |
| Release comparison | Dashboards before and after a deployment | Makes a regression visible to the team that shipped it |
Cost and capacity questions are better answered by billing and metrics data. Our guide to budget alarms in AWS covers cost alerting, and observability with CloudWatch and Grafana covers metrics and logs.
Which instrumentation should you use now?
The X-Ray instrumentation page carries a maintenance notice. On 25 February 2026 the AWS X-Ray SDKs and daemon enter maintenance mode, where AWS limits releases to security issues, and AWS recommends migrating to OpenTelemetry. The page describes the AWS Distro for OpenTelemetry as a distribution of upstream OpenTelemetry components, including SDKs, auto-instrumentation agents and collectors, that AWS tests, secures and supports. It does not announce an end-of-support date for the X-Ray SDKs and refers to a separate support timeline, so check that page before you plan a migration.
For new services, start with OpenTelemetry instrumentation. For existing services on the X-Ray SDK, schedule the move and keep tracing running while you do it.
How do AI agents change tracing?
An AI agent turns one user request into a chain of model calls, tool calls and service calls. A trace gives each of those steps a place in one timeline, so a slow or failed agent action can be traced to the service behind it. Teams then decide which traces and service dependencies their agents rely on, and who acts when one degrades. ElixirClaw is the AI agents computing platform from XenonStack for teams building and running agents, and the same tracing discipline applies to the services those agents call.
What should you do first?
- List the five services whose latency your users notice most.
- Confirm each one sends trace data, using OpenTelemetry for anything new.
- Connect Grafana to X-Ray and build one dashboard per user journey.
- Add alert rules on trace statistics and name an owner for each.
- Review traces after every release for the first month.
To map one decision your agents make, and the services and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is AWS X-Ray used for?
It collects data about requests your application serves so you can view, filter and analyse that data to find issues and opportunities for optimisation. It shows calls to downstream AWS resources, microservices, databases and web APIs.
Can Grafana display AWS X-Ray traces?
Yes. The Grafana plugin lets you query and visualise AWS X-Ray traces and AWS Application Signals services, explore distributed traces and inspect service maps.
Is the Grafana X-Ray data source the same as the Application Signals data source?
They are the same plugin. The plugin documentation says it was formerly named the AWS X-Ray data source.
Should new projects use the X-Ray SDK?
AWS says its X-Ray SDKs and daemon enter maintenance mode on 25 February 2026 and recommends migrating to OpenTelemetry, so new services should start with OpenTelemetry instrumentation.
Can I alert on X-Ray data in Grafana?
Yes. The plugin documentation says you can build alert rules on numeric Trace Statistics queries.
Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE