๐ฃ Relay collector
Use the docker image provided below to setup an OTel collector in your VPC that will act as a relay to pass on all traffic into Helios
The Helios Relay Collector Docker image is available in dockerhub.
Via Dockerfile or docker-compose
You will need to configure your docker container with your Helios token as an environment variable (HS_TOKEN
).
Here's an example docker-compose
file that can be used to run the relay collector image:
version: "3.9"
services:
helios-relay-collector:
image: gethelios/helios-relay-collector:latest
ports:
- "4317:4317"
- "55681:55681"
environment:
HS_TOKEN: <<YOUR_HELIOS_TOKEN_HERE>>
Via CloudFormation
To simplify the deployment of the Helios relay collector, you can use the following CloudFormation stack:
network.yml
(download) - Creates the network stack (security groups, subnets, etc.). The VPC and ECS clusters are configurable.
service.yml
(download) - Creates the ECS service itself.
Instructions:
- Log into your AWS account console and switch to the desired region.
- Go to the
CloudFormation
service and clickCreate stack
. - In the
Template source
section, selectUpload a template file
. - Click
Choose file
and select thenetwork.yml
file, and then clickNext
. - In the
Stack name
section enterhelios-relay-collector-network
. - In the
Parameters
section:- VPC - The ID of the relevant VPC.
- ECSCluster - The name of an existing ECS cluster.
- Click
Next
twice and thenSubmit
. Wait until the status of the newly created stack isCREATE_COMPLETE
. - Return to the
CloudFormation
main page, and clickCreate stack
. - In the
Template source
section, selectUpload a template file
. - Click
Choose file
and select theservice.yml
file, and then clickNext
. - In the
Stack name
section enterhelios-relay-collector-service
. - In the
Parameters
section:HeliosToken
- Enter the API token given by Helios.ServiceName
- Enterhelios-relay-collector-service
.StackName
- Enterhelios-relay-collector-network
(should be the same as the stack name entered for thenetwork.yml
file).- [Optional]
ImageUrl
- Enter a different version of the Helios relay collector (default islatest
).
- Click
Next
twice and thenSubmit
, and wait until the status of the newly created stack isCREATE_COMPLETE
. - Use the load balancer's URL as the
HS_COLLECTOR_ENDPOINT
environment variable in a Lambda that has no internet access (e.g., http://lb-hostname/v1/trace).
Please notice that the load balancer has no incoming network access, unless traffic is coming from the VPC, and has internet access in order to send traffic to Helios.
Updated 25 days ago