Skip to content

Commit

Permalink
[Dotnet] Fix AWS SDK Test Metrics for E2E (aws-observability#216)
Browse files Browse the repository at this point in the history
*Issue description:*
After change the sample app the listbucketlocation, we miss some test
metric
*Description of changes:*
add metrics related to AWS S3 operation
*Rollback procedure:*
roll back
<Can we safely revert this commit if needed? If not, detail what must be
done to safely revert and why it is needed.>
Yes
*Test*

https://github.com/aws-observability/aws-application-signals-test-framework/actions/runs/10741939621
*Ensure you've run the following tests on your changes and include the
link below:*

To do so, create a `test.yml` file with `name: Test` and workflow
description to test your changes, then remove the file for your PR. Link
your test run in your PR description. This process is a short term
solution while we work on creating a staging environment for testing.

NOTE: TESTS RUNNING ON A SINGLE EKS CLUSTER CANNOT BE RUN IN PARALLEL.
See the
[needs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds)
keyword to run tests in succession.
- Run Java EKS on `e2e-playground` in us-east-1 and eu-central-2
- Run Python EKS on `e2e-playground` in us-east-1 and eu-central-2
- Run metric limiter on EKS cluster `e2e-playground` in us-east-1 and
eu-central-2
- Run EC2 tests in all regions
- Run K8s on a separate K8s cluster (check IAD test account for master
node endpoints; these will change as we create and destroy clusters for
OS patching)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
  • Loading branch information
XinRanZhAWS authored Sep 6, 2024
1 parent 5c476e7 commit 4636b6a
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,55 @@
name: RemoteService
value: AWS::S3

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Error
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -150,6 +199,55 @@
name: RemoteService
value: AWS::S3

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Fault
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -226,3 +324,51 @@
name: RemoteService
value: AWS::S3

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:{{platformInfo}}
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,55 @@
name: RemoteService
value: AWS::S3

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Error
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -150,6 +199,55 @@
name: RemoteService
value: AWS::S3

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Fault
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -226,3 +324,52 @@
name: RemoteService
value: AWS::S3


-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Operation
value: GET /aws-sdk-call
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Service
value: {{serviceName}}
-
name: Environment
value: ec2:default
-
name: RemoteOperation
value: GetBucketLocation
-
name: RemoteService
value: AWS::S3
-
name: RemoteResourceIdentifier
value: {{testingId}}
-
name: RemoteResourceType
value: AWS::S3::Bucket

0 comments on commit 4636b6a

Please sign in to comment.