Skip to content

Commit

Permalink
[Java/eks-otlp-ocb] Test validation adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
majanjua-amzn committed Nov 15, 2024
1 parent 4ea000a commit 5b7bfe7
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 218 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand All @@ -15,7 +14,6 @@
"Host": "^ip(-[0-9]{1,3}){4}.*$"
},
{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}",
"otel.resource.K8s.Workload": "^sample-app-deployment-{{testingId}}",
Expand All @@ -37,7 +36,7 @@
"name": "^S3$",
"http": {
"request": {
"url": "^https://e2e-test-bucket-name-{{testingId}}.s3.{{region}}.amazonaws.com\\?location$",
"url": "^https://e2e-test-bucket-name-{{testingId}}.s3.us-west-1.amazonaws.com?location$",
"method": "^GET$"
}
},
Expand All @@ -52,7 +51,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}$",
"PlatformType": "^AWS::EKS$",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand All @@ -15,7 +14,6 @@
"Host": "^ip(-[0-9]{1,3}){4}.*$"
},
{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}$",
"PlatformType": "^AWS::EKS$",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand All @@ -15,7 +14,6 @@
"Host": "^ip(-[0-9]{1,3}){4}.*$"
},
{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}",
"otel.resource.K8s.Workload": "^sample-app-deployment-{{testingId}}",
Expand Down Expand Up @@ -50,7 +49,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}$",
"PlatformType": "^AWS::EKS$",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand All @@ -15,7 +14,6 @@
"Host": "^ip(-[0-9]{1,3}){4}.*$"
},
{
"EC2.AutoScalingGroup": "^eks-.+",
"EC2.InstanceId": "^i-[A-Za-z0-9]{17}$",
"EKS.Cluster": "^{{platformInfo}}$",
"Environment": "^eks:{{platformInfo}}/{{appNamespace}}$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,66 +107,6 @@
name: RemoteService
value: {{remoteServiceDeploymentName}}

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Latency
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: Operation
value: GET /remote-service
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Error
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -276,66 +216,6 @@
name: RemoteService
value: {{remoteServiceDeploymentName}}

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Error
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: Operation
value: GET /remote-service
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Fault
namespace: {{metricNamespace}}
Expand Down Expand Up @@ -443,64 +323,4 @@
dimensions:
-
name: RemoteService
value: {{remoteServiceDeploymentName}}

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}

-
metricName: Fault
namespace: {{metricNamespace}}
dimensions:
-
name: Environment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: RemoteEnvironment
value: eks:{{platformInfo}}/{{appNamespace}}
-
name: Operation
value: GET /remote-service
-
name: RemoteOperation
value: GET /healthcheck
-
name: RemoteService
value: {{remoteServiceDeploymentName}}
-
name: Service
value: {{serviceName}}
value: {{remoteServiceDeploymentName}}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}",
"otel.resource.K8s.Workload": "^sample-app-deployment-{{testingId}}",
Expand Down Expand Up @@ -51,7 +50,6 @@
},
"metadata": {
"default": {
"EC2.AutoScalingGroup": "^eks-.+",
"EKS.Cluster": "^{{platformInfo}}$",
"K8s.Namespace": "^{{appNamespace}}$",
"PlatformType": "^AWS::EKS$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@
httpPath: "/client-call"
httpMethod: "get"
callingType: "http"
expectedLogStructureTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_LOG"
-
validationType: "cw-log"
httpPath: "/mysql"
httpMethod: "get"
callingType: "http"
expectedLogStructureTemplate: "JAVA_EKS_OTLP_OCB_RDS_MYSQL_LOG"
expectedLogStructureTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_LOG"
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@
httpPath: "/client-call"
httpMethod: "get"
callingType: "http"
expectedMetricTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_METRIC"
-
validationType: "cw-metric"
httpPath: "/mysql"
httpMethod: "get"
callingType: "http"
expectedMetricTemplate: "JAVA_EKS_OTLP_OCB_RDS_MYSQL_METRIC"
expectedMetricTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_METRIC"
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@
httpPath: "/client-call"
httpMethod: "get"
callingType: "http"
expectedTraceTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_TRACE"
-
validationType: "trace"
httpPath: "/mysql"
httpMethod: "get"
callingType: "http"
expectedTraceTemplate: "JAVA_EKS_OTLP_OCB_RDS_MYSQL_TRACE"
expectedTraceTemplate: "JAVA_EKS_OTLP_OCB_CLIENT_CALL_TRACE"

0 comments on commit 5b7bfe7

Please sign in to comment.