You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status: Downloaded newer image for hello-world:latest
83
-
84
124
Hello from Docker!
85
125
This message shows that your installation appears to be working correctly.
86
126
@@ -104,11 +144,12 @@ For more examples and ideas, visit:
104
144
```
105
145
### 5. Install Harvest on EC2
106
146
107
-
To install Harvest on your EC2 instance following the following steps:
147
+
Preform the following steps to install Harvest on your EC2 instance:
108
148
109
149
#### 5.1. Generate Harvest Configuration File
110
150
111
-
Create `harvest.yml` file with your cluster details, below is an example with annotated comments. Modify as needed for your scenario:
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.
152
+
Add as many pollers as you need to monitor all your FSxNs. There should be an AWS Secrets Manager secret for each FSxN.
112
153
113
154
```yaml
114
155
Exporters:
@@ -162,20 +203,22 @@ docker run --rm \
162
203
--output harvest-compose.yml
163
204
```
164
205
165
-
:warning:**NOTE** Ignore the command that it outputs used to start Harvest.
206
+
:warning: Ignore the command that it outputs that it says will start the cluster.
166
207
167
208
#### 5.3. Replace Harvest images in the harvest-compose.yml:
168
209
169
-
Replace the Harvest image that supports using AWS Secret Manager for FSxN credentials:
210
+
Replace the Harvest image with one that supports using AWS Secret Manager for FSxN credentials:
170
211
171
212
```yaml
172
213
sed -i 's|ghcr.io/netapp/harvest:latest|ghcr.io/tlvdevops/harvest-fsx:latest|g' harvest-compose.yml
`SECRET_NAME` and `AWS_REGION` are required for the credentials script.
218
+
Edit the `harvest-compose.yml` file by adding the "environment" section for each FSxN with the two variables: `SECRET_NAME` and `AWS_REGION`.
219
+
These environment variables are required for the credentials script.
178
220
221
+
For example:
179
222
```yaml
180
223
services:
181
224
fsx01:
@@ -209,33 +252,33 @@ AWS has useful metrics regarding the FSxN file system that ONTAP doesn't provide
209
252
an exporter that will expose these metrics. The following steps show how to install a recommended exporter.
210
253
211
254
##### 5.6.1 Create the yace configuration file.
212
-
Use the text in the box below to create the configuration file named `yace-config.yaml`. Replace `<your_region>`, in both places, with the region where your FSxN resides:
213
-
255
+
Edit the `yace-config.yaml` file found in this repo and replace `<aws_region>`, in both places, with the region where your FSxN resides:
214
256
```yaml
215
257
apiVersion: v1alpha1
216
-
sts-region: <your_region>
258
+
sts-region: <aws_region>
217
259
discovery:
218
260
jobs:
219
261
- type: AWS/FSx
220
-
regions: [<your_region>]
262
+
regions: [<aws_region>]
221
263
period: 300
222
264
length: 300
223
265
metrics:
224
266
- name: DiskReadOperations
225
-
statistics: [Average]
267
+
statistics: [Sum]
226
268
- name: DiskWriteOperations
227
-
statistics: [Average]
269
+
statistics: [Sum]
228
270
- name: DiskReadBytes
229
-
statistics: [Average]
271
+
statistics: [Sum]
230
272
- name: DiskWriteBytes
231
-
statistics: [Average]
273
+
statistics: [Sum]
232
274
- name: DiskIopsUtilization
233
275
statistics: [Average]
234
276
- name: NetworkThroughputUtilization
235
277
statistics: [Average]
236
278
- name: FileServerDiskThroughputUtilization
237
279
statistics: [Average]
238
-
280
+
- name: CPUUtilization
281
+
statistics: [Average]
239
282
```
240
283
241
284
##### 5.6.2 Add Yet-Another-Exporter to harvest-compose.yaml
0 commit comments