From cf65c5f27615c8c982af251b84447995a4fd06a4 Mon Sep 17 00:00:00 2001 From: Vijay N Date: Thu, 25 Apr 2024 07:49:23 +0530 Subject: [PATCH] * XRay daemon now comes preinstalled with AMI. Removed the installation step. --- userguide/tutorials/metrics-cloudwatch.adoc | 24 --------------------- 1 file changed, 24 deletions(-) diff --git a/userguide/tutorials/metrics-cloudwatch.adoc b/userguide/tutorials/metrics-cloudwatch.adoc index 1f3829774..6754eb762 100644 --- a/userguide/tutorials/metrics-cloudwatch.adoc +++ b/userguide/tutorials/metrics-cloudwatch.adoc @@ -53,30 +53,6 @@ After editing the file, go to your AWS EC2 dashboard and *reboot the instance* so the new configuration file will be read. If you have more than one instance, follow the same procedure for each one. -== Install the X-Ray daemon - -AWS X-Ray is a service that collects and analyzes data from your applications. A daemon is a process that runs in the background to do a job whenever it is needed. The X-Ray daemon uploads application metrics to X-Ray in batches to be processed. X-Ray then forwards this data to CloudWatch for display. - -To setup the daemon, log in to your EC2 instance and run the following commands: - -``` -# Download the X-Ray daemon package -wget https://s3.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-3.x.deb - -# Install the package using dpkg -sudo dpkg -i aws-xray-daemon-3.x.deb - -# Install any dependencies or fix broken dependencies (if needed) -sudo apt-get install -f - -# Enable X-Ray as a system service to start on boot -sudo systemctl enable xray - -# Start the X-Ray service -sudo systemctl start xray -``` - -If you have more than one instance, repeat these commands on each one. == Create an IAM Policy