Skip to content

Commit

Permalink
* XRay daemon now comes preinstalled with AMI. Removed the installati…
Browse files Browse the repository at this point in the history
…on step.
  • Loading branch information
vnandwana committed Apr 25, 2024
1 parent ffc939b commit cf65c5f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions userguide/tutorials/metrics-cloudwatch.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf65c5f

Please sign in to comment.