Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/namshi/docker-aws-xray-daemon
AWS X-Ray daemon image
https://github.com/namshi/docker-aws-xray-daemon
Last synced: 1 day ago
JSON representation
AWS X-Ray daemon image
- Host: GitHub
- URL: https://github.com/namshi/docker-aws-xray-daemon
- Owner: namshi
- Created: 2017-02-06T15:43:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T09:57:33.000Z (over 7 years ago)
- Last Synced: 2024-11-02T13:34:19.275Z (6 days ago)
- Homepage:
- Size: 1.95 KB
- Stars: 9
- Watchers: 9
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS X-Ray Daemon
[![](https://images.microbadger.com/badges/image/namshi/aws-xray.svg)](https://microbadger.com/images/namshi/aws-xray)This is aws x-ray daemon which runs in a container. This eliminates the need for running the daemon in every docker container.
## Requirement
* AWS user credential or AWS iam role with aws managed policy `AWSXrayWriteOnlyAccess`
## Running in ec2 environment with iam instance role
```
docker run -d -p 2000/udp:2000/udp \
--name aws-xray namshi/aws-xray:latest
```## Running in non-ec2 environment or ec2 environment without iam instance role
```
docker run -d -p 2000/udp:2000/udp \
-e AWS_ACCESS_KEY_ID=aws_access_key \
-e AWS_SECRET_ACCESS_KEY=aws_secret_key \
-e AWS_REGION=aws_region \
--name aws-xray namshi/aws-xray --local-mode
```## Sending metrics from another container to the x-ray daemon container
```
docker run -d --link aws-xray \
-e AWS_XRAY_TRACING_NAME=myapp
-e AWS_XRAY_DAEMON_ADDRESS=
-e AWS_XRAY_DEBUG_MODE="true"
myorg/myapp:latest
```## Guide on AWS X-Ray for Java
http://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java.html
## Guide on AWS X-Ray for Node.js
http://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs.html
## Guide on AWS X-Ray for .NET
http://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-dotnet.html