@@ -170,8 +170,6 @@ jobs:
170
170
--region ${{ inputs.aws-region }} \
171
171
--configuration-values '{"agent":{"config":{"logs":{"metrics_collected":{"app_signals":{"limiter":{"drop_threshold":2}}}}}}}'
172
172
173
- execute_and_retry 2 "kubectl delete pods --all -n amazon-cloudwatch"
174
- execute_and_retry 2 "kubectl wait --for=condition=Ready pod --all -n amazon-cloudwatch"
175
173
176
174
execute_and_retry 2 "kubectl delete pods --all -n ${{ env.SAMPLE_APP_NAMESPACE }}" "" 60
177
175
execute_and_retry 2 "kubectl wait --for=condition=Ready --request-timeout '5m' pod --all -n ${{ env.SAMPLE_APP_NAMESPACE }}" "" 10
@@ -192,6 +190,14 @@ jobs:
192
190
sleep 10
193
191
done
194
192
193
+ # Need to call some APIs so that it exceeds the metric limiter threshold and make the test
194
+ # APIs generate AllOtherOperations metric. Sleep for a minute to let cloudwatch service process the API call
195
+ # Calling it here before calling the remote sample app endpoint because the API generated by it is validated
196
+ # for AllOtherRemoteOperations in the metric validation step
197
+ curl -S -s $(echo "$main_sample_app_endpoint" | tr -d '"'); echo
198
+ curl -S -s $(echo "$main_sample_app_endpoint" | tr -d '"')/fake-endpoint; echo
199
+ sleep 60
200
+
195
201
echo "Attempting to connect to the remote sample app endpoint"
196
202
remote_sample_app_endpoint=http://$(terraform output sample_remote_app_endpoint)/healthcheck
197
203
echo $remote_sample_app_endpoint
@@ -263,15 +269,6 @@ jobs:
263
269
run : echo "APP_ENDPOINT=$(terraform output sample_app_endpoint)" >> $GITHUB_ENV
264
270
working-directory : terraform/eks
265
271
266
- # Need to call some APIs so that it exceeds the metric limiter threshold and make the test
267
- # APIs generate AllOtherOperations metric. Sleep for a minute to let cloudwatch service process the API call
268
- - name : Call healthcheck and error API to meet the metric limiter threshold
269
- continue-on-error : true
270
- run : |
271
- curl -S -s http://${{ env.APP_ENDPOINT }}/; echo
272
- curl -S -s http://${{ env.APP_ENDPOINT }}/fake-endpoint; echo
273
- sleep 60
274
-
275
272
# This steps increases the speed of the validation by creating the telemetry data in advance
276
273
- name : Call all test APIs
277
274
continue-on-error : true
0 commit comments