Skip to content

Commit e9f4e07

Browse files
authored
Merge pull request #51 from aws-observability/e2e-metric-limiter
E2E metric limiter
2 parents 2a70753 + ab150fe commit e9f4e07

File tree

8 files changed

+2034
-1
lines changed

8 files changed

+2034
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
3+
4+
## This workflow aims to run the Application Signals end-to-end tests as a canary to
5+
## test the artifacts for App Signals enablement. It will deploy the CloudWatch Agent
6+
## Operator and our sample app and remote service onto a native K8s cluster, call the
7+
## APIs, and validate the generated telemetry, including logs, metrics, and traces.
8+
## It will then clean up the cluster and EC2 instance it runs on for the next test run.
9+
name: App Signals Enablement - E2E K8s Canary Testing
10+
on:
11+
schedule:
12+
- cron: '*/15 * * * *' # run the workflow every 15 minutes
13+
workflow_dispatch: # be able to run the workflow on demand
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
19+
jobs:
20+
e2e-eks-test-1:
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
aws-region: ['us-east-1']
25+
uses: ./.github/workflows/appsignals-e2e-metric-limiter-test.yml
26+
secrets: inherit
27+
with:
28+
aws-region: ${{ matrix.aws-region }}
29+
test-cluster-name: 'e2e-metric-limiter-test'
30+
caller-workflow-name: 'appsignals-e2e-metric-limiter-test'

.github/workflows/appsignals-e2e-metric-limiter-test.yml

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

validator/src/main/java/com/amazon/aoc/fileconfigs/PredefinedExpectedTemplate.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ public enum PredefinedExpectedTemplate implements FileConfig {
7373
K8S_CLIENT_CALL_METRIC("/expected-data-template/k8s/client-call-metric.mustache"),
7474
K8S_CLIENT_CALL_TRACE("/expected-data-template/k8s/client-call-trace.mustache"),
7575

76-
/** Python EKS Test Case Validations */
76+
/** Metric Limiter Test Case Validations */
77+
METRIC_LIMITER_OUTGOING_HTTP_CALL_METRIC("/expected-data-template/metric_limiter/outgoing-http-call-metric.mustache"),
78+
METRIC_LIMITER_AWS_SDK_CALL_METRIC("/expected-data-template/metric_limiter/aws-sdk-call-metric.mustache"),
79+
METRIC_LIMITER_REMOTE_SERVICE_METRIC("/expected-data-template/metric_limiter/remote-service-metric.mustache"),
80+
METRIC_LIMITER_CLIENT_CALL_METRIC("/expected-data-template/metric_limiter/client-call-metric.mustache"),
81+
82+
/** Python EKS Test Case Validations */
7783
PYTHON_EKS_OUTGOING_HTTP_CALL_LOG("/expected-data-template/python/eks/outgoing-http-call-log.mustache"),
7884
PYTHON_EKS_OUTGOING_HTTP_CALL_METRIC("/expected-data-template/python/eks/outgoing-http-call-metric.mustache"),
7985
PYTHON_EKS_OUTGOING_HTTP_CALL_TRACE("/expected-data-template/python/eks/outgoing-http-call-trace.mustache"),

0 commit comments

Comments
 (0)