Skip to content

Commit 030013d

Browse files
committed
Initial Version
1 parent 4ea80b7 commit 030013d

File tree

1 file changed

+7
-4
lines changed
  • Monitoring/monitor_fsxn_with_harvest_on_ec2

1 file changed

+7
-4
lines changed

Monitoring/monitor_fsxn_with_harvest_on_ec2/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ aws secretsmanager create-secret --name <YOUR-SECRET-NAME> --secret-string '{"us
2626

2727
### 2. Create Instance Profile with Permission to AWS Secret Manager and CloudWatch metrics
2828

29-
#### 2.1. Create Policy with Permissions to AWS Secret Manager
29+
#### 2.1. Create Policy
3030

3131
Edit the harvest-policy.json file found in this repo with the ARN of the AWS Secret Manager secrets created above.
3232
If you only have one FSxN and therefore only one secret, remove the comma after the one secret ARN (i.e. the last
@@ -73,13 +73,16 @@ entry should not have a comma after it).
7373
],
7474
"Version": "2012-10-17"
7575
}
76+
```
7677

78+
Run the following command to create the policy and obtain the policy ARN:
7779
```sh
7880
POLICY_ARN=$(aws iam create-policy --policy-name harvest-policy --policy-document file://harvest-policy.json --query Policy.Arn --output text)
7981
```
8082

8183
#### 2.2. Create Instance Profile Role
8284

85+
Run the following commands to create the instance profile role and attach the policy to it:
8386
```sh
8487
aws iam create-role --role-name HarvestRole --assume-role-policy-document file://trust-policy.json
8588
aws iam attach-role-policy --role-name HarvestRole --policy-arn $POLICY_ARN
@@ -91,7 +94,7 @@ Note that the `trust-policy.json` file can be found in this repo.
9194

9295
### 3. Create EC2 Instance
9396

94-
We recommend using a `t2.xlarge` or larger instance type with 20GB disk.
97+
We recommend using a `t2.xlarge` or larger instance type with at least 20GB disk.
9598

9699
Once you have created your ec2 instance, you can use the following command to attach the instance profile:
97100

@@ -148,7 +151,7 @@ Preform the following steps to install Harvest on your EC2 instance:
148151

149152
#### 5.1. Generate Harvest Configuration File
150153

151-
Modify the `harvest.yml` found in this repo with your clusters details. You mostly should just have to change the `<FSxN_ip_X>` to the IP of your FSxN.
154+
Modify the `harvest.yml` found in this repo with your clusters details. You should just have to change the `<FSxN_ip_X>` with the IP addresses of your FSxNs.
152155
Add as many pollers as you need to monitor all your FSxNs. There should be an AWS Secrets Manager secret for each FSxN.
153156

154157
```yaml
@@ -303,7 +306,7 @@ Copy the following to the end of the `harvest-compose.yml` file:
303306

304307
##### 5.6.3. Add Yet-Another-Exporter target to prometheus.yml:
305308
```yaml
306-
sudo sed -i -e "\$a\- job_name: 'yace'" -e '$a\ static_configs:' -e "\$a\ - targets: ['yace:8080']" container/prometheus/prometheus.yml
309+
sudo sed -i -e "\$a\- job_name: 'yace'" -e "\$a\ static_configs:" -e "\$a\ - targets: ['yace:8080']" container/prometheus/prometheus.yml
307310
```
308311

309312
##### 6. Bring Everything Up

0 commit comments

Comments
 (0)