Skip to content

Commit 64b8519

Browse files
committed
updating building collector as rpm section
1 parent 45cac57 commit 64b8519

File tree

1 file changed

+13
-27
lines changed

1 file changed

+13
-27
lines changed

src/docs/setup/build-collector-as-rpm.mdx

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import SectionSeparator from "components/MdxSectionSeparator/sectionSeparator.js
99

1010
<SectionSeparator />
1111

12-
## Run ADOTCollector Beta on AWS EC2 Linux
12+
## Run ADOT Collector on AWS EC2 Linux
1313

14-
To run ADOTCollector on AWS EC2 Linux host, you can choose to install ADOTCollector RPM on your host by the following steps.
14+
To run ADOT Collector on AWS EC2 Linux host, you can choose to install ADOT Collector RPM on your host by the following steps.
1515

1616
**Steps,**
1717

@@ -24,47 +24,33 @@ make package-rpm
2424
```
2525
sudo rpm -Uvh ./aws-otel-collector.rpm
2626
```
27-
3. Once RPM is installed, it will create ADOTCollector in directory ```/opt/aws/aws-otel-collector/```
27+
3. Once RPM is installed, it will create ADOT Collector in directory ```/opt/aws/aws-otel-collector/```
2828

29-
4. We provided a control script to manage ADOTCollector. Customer can use it to Start, Stop and Check Status of ADOTCollector.
29+
4. We provided a control script to manage ADOT Collector. Customer can use it to Start, Stop and Check Status of ADOT Collector.
3030

31-
* Start ADOTCollector with CTL script. The config.yaml is optional, if it is not provided the default [config](../../config.yaml) will be applied.
31+
* Start ADOT Collector with CTL script. The config.yaml is optional, if it is not provided the default [config](../../config.yaml) will be applied.
3232
```
3333
sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c </path/config.yaml> -a start
3434
```
35-
* Stop the running ADOTCollector when finish the testing.
35+
* Stop the running ADOT Collector when finish the testing.
3636
```
3737
sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a stop
3838
```
39-
* Check the status of ADOTCollector
39+
* Check the status of ADOT Collector
4040
```
4141
sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a status
4242
```
4343

44-
5. Test the data with the running ADOTCollector on EC2. you can run the following command on EC2 host. (Docker app has to be pre-installed)
44+
5. Test the data with the running ADOT Collector on EC2. you can run the following command on EC2 host. (Docker app has to be pre-installed)
4545
```
4646
docker run --rm -it -e "OTEL_OTLP_ENDPOINT=172.17.0.1:4317" -e "otlp_instance_id=test_insance_rpm" -e "OTEL_RESOURCE_ATTRIBUTES=service.namespace=ADOTCollectorRPMDemo,service.name=ADOTCollectorRPMDemoService" -e S3_REGION=us-west-2 aottestbed/aws-otel-collector-sample-app:java-0.1.0
4747
```
4848

4949
**View Your Metrics**
50-
You should now be able to view your metrics in your [CloudWatch console](https://console.aws.amazon.com/cloudwatch/). In the navigation bar, click on **Metrics**. The collected ADOTCollector metrics can be found in the **ADOTCollectorRPMDemo/ADOTCollectorRPMDemoService** namespace.
50+
You should now be able to view your metrics in your [CloudWatch console](https://console.aws.amazon.com/cloudwatch/). In the navigation bar, click on **Metrics**. The collected ADOT Collector metrics can be found in the **ADOTCollectorRPMDemo/ADOTCollectorRPMDemoService** namespace.
5151

52-
### Installing ADOTCollector via CloudFormation
53-
### Install ADOTCollector on ECS EC2
54-
Download CloudFormation template file for installing ADOTCollector on ECS EC2 mode
55-
```
56-
curl -O https://github.com/mxiamxia/aws-opentelemetry-collector/blob/master/deployment-template/ec2/aws-otel-ec2-deployment-cfn.template
57-
```
58-
Run CloudFormation the following command once ```IAMRole```, ```Region```, ```EC2Key``` and ```CFN_File_Downloaded``` are filled.
59-
```
60-
Region=<aws-region>
61-
IAMRole=<iam-role>
62-
EC2Key=<ec2-ssh-key-name>
63-
aws cloudformation create-stack --stack-name ADOTCollectorEC2-Test \
64-
--template-body file://<CFN_File_Downloaded> \
65-
--parameters ParameterKey=IAMRole,ParameterValue=${IAMRole} \
66-
ParameterKey=KeyName,ParameterValue=${EC2Key} \
67-
--capabilities CAPABILITY_NAMED_IAM \
68-
--region ${Region}
69-
```
52+
### Installing ADOT Collector via CloudFormation
53+
See [this section](/docs/setup/ec2) for detailed information on installing ADOT Collector via CloudFormation on EC2.
7054

55+
### Install ADOT Collector on ECS EC2
56+
See [this section](/docs/setup/ecs) for detailed information on installing ADOT Collector on ECS.

0 commit comments

Comments
 (0)