XenonStack

Deployment Automation

XenonStack Insights AWS X-Ray and Grafana: Tracing Guide

| Published | Updated

AWS X-Ray and Grafana: instrumented services feed X-Ray traces, which the Grafana plugin shows on dashboards and alerts

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.

Two-column diagram. AWS side: instrument, daemon, X-Ray traces, OpenTelemetry. Grafana side: data source, service map, trace statistics, alert rules.

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.

ComponentWhat it doesWhere it is documented
X-Ray serviceCollects trace data about requests and builds the trace mapAWS X-Ray developer guide
Instrumentation (SDK or OpenTelemetry)Sends trace data for incoming and outbound requestsAWS X-Ray developer guide
X-Ray daemonBuffers segments and uploads them to X-Ray in batchesAWS X-Ray developer guide
Grafana pluginQueries traces and service maps from X-Ray and Application SignalsGrafana plugin documentation
Grafana dashboardsShow trace statistics, service maps and alerts beside other dataGrafana 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.

  1. Turn on tracing for the workloads you care about and confirm trace data is reaching X-Ray in the AWS console.
  2. Install and configure the data source in Grafana using the plugin documentation, with an AWS identity that is allowed to read X-Ray data.
  3. Create a dashboard and add a panel that uses the X-Ray data source. Filter traces by service, error status or time range.
  4. Show service maps in the Node graph panel and trace statistics as time series.
  5. Build alert rules on numeric Trace Statistics queries, which the plugin documentation says are supported.
  6. 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 caseWhat you look atWhy it helps
Latency and errorsTrace statistics per service and time rangeShows which service adds delay or raises errors
Service dependenciesService map in the Node graph panelShows which downstream service sits behind a failing request
Single request debuggingAn individual trace and its annotationsFollows one request through every call it made
AlertingAlert rules on numeric trace statisticsNotifies owners when a threshold is crossed
Release comparisonDashboards before and after a deploymentMakes 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?

  1. List the five services whose latency your users notice most.
  2. Confirm each one sends trace data, using OpenTelemetry for anything new.
  3. Connect Grafana to X-Ray and build one dashboard per user journey.
  4. Add alert rules on trace statistics and name an owner for each.
  5. 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.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in Solving your Challenges with XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Proceed Next