generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 23
[Python] Custom Metrics E2E Test #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Miqueasher
wants to merge
101
commits into
aws-observability:main
Choose a base branch
from
Miqueasher:otel-custom-metrics-test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 87 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
f02dcb3
Create test.yml
Miqueasher 383791c
updating custom metrics test branch
Miqueasher c74f03f
Merge branch 'otel-custom-metrics-test' of https://github.com/aws-obs…
Miqueasher d89c43b
Update test.yml
Miqueasher 3e1be9b
fixing variables.tf typo
Miqueasher f5b6b0e
Merge branch 'otel-custom-metrics-test' of https://github.com/aws-obs…
Miqueasher c5f28fd
updated bash syntax error
Miqueasher 3455277
updating tf files
Miqueasher ddd2993
updating syntax error
Miqueasher 446bd08
updating main service to connect to local host only if CM is enabled
Miqueasher 75c47a2
updating main.tf
Miqueasher 0c75867
updating default instance
Miqueasher e285993
setting custom metrics default to true
Miqueasher dd9e778
fixing cw agent
Miqueasher a3fedbc
making custom metrics conditional
Miqueasher 81500c6
setting custom metrics to false
Miqueasher 72c88c5
separating metric validation files
Miqueasher b0e450f
Revert "separating metric validation files"
Miqueasher 0e3aff2
adding debugger for sql pws
Miqueasher d070aab
adding dummy MYSQL data to prevent KeyError
Miqueasher 67329dc
setting custom metrics to true
Miqueasher 59b9f12
updating zip,validation templates, variables, and test region
Miqueasher 284c65e
fixing typo
Miqueasher 761a7ed
updating otlp-proto dependency version
Miqueasher 02e58d5
updating grpc dependency and sample app
Miqueasher bc4a37a
fixing typo in main.tf
Miqueasher f3dbdf4
testing new grpc/http endpoints
Miqueasher 3807ca9
updating cwa
Miqueasher 2883c2f
removing cwagent and updated views
Miqueasher c826fa0
updating env variables
Miqueasher 791c366
updating cloudwatch config
Miqueasher 3c2cbe1
adding metrics section to test metrics pipeline
Miqueasher b8cb6c5
updating views and cwa
Miqueasher 9cfa435
removing global variable
Miqueasher f616720
changing global variable to http to test exporter
Miqueasher b4356ba
adding gauge/histogram and modifying export structure
Miqueasher 801286c
updating views, metric-val, and default test
Miqueasher 50d9ebd
removing broken gauge, fixing typo
Miqueasher a9e2feb
updating predefined template and metric validation name to standards
Miqueasher 92e8620
reverting back to last passing commit
Miqueasher effd5d6
adding telemetry.status to resource
Miqueasher ce893f2
updating namespace
Miqueasher c3b25d0
removing custom export pipeline
Miqueasher f83f427
updating views
Miqueasher 79f9a09
updating traffic generator to hit custom endpoints
Miqueasher 29c32d6
updating according to public docs.
Miqueasher 7153eaf
testing new cwa config
Miqueasher 1c5f429
reverting cwagent and adding logging to metric validator
Miqueasher 710b4c3
adding more log debuggers
Miqueasher 0a29d7e
adjusting otlp metrics end point for test
Miqueasher e2e01a8
making grpc unecrypted
Miqueasher 5d84db6
Revert "making grpc unecrypted"
Miqueasher 9a649bc
attempt to revert back to test id-18514948781-1549-2067
Miqueasher a4ba51d
adding validator for CWAgent
Miqueasher dd6c12c
testing out single validator file
Miqueasher f0f890d
reverting back to separate validation files
Miqueasher b6bab9e
updating dimension value of custom_export_counter
Miqueasher 34087f4
updating validation dimensions
Miqueasher 1f74499
adding debug loggers
Miqueasher db6fda5
updating validation template
Miqueasher ea96f6e
updating service.name attribute to Service
Miqueasher f360d97
updating service.name attribute to Service
Miqueasher 523e41b
updating val templates with temp values for testing
Miqueasher 9149f84
removing debuggers/loggers
Miqueasher 567e84c
removing dead code
Miqueasher fc77459
deleting 'delete-me' file and removing test.yml file
Miqueasher e3034a5
Merge branch 'main' into otel-custom-metrics-test
Miqueasher 3359c0b
adding in test files, and testing PR changes
Miqueasher 2883bbe
adding in test files, and testing PR changes
Miqueasher b1b9e7a
testing region changes
Miqueasher e458468
swapping region to us-west-2
Miqueasher 0de1b5a
Merge branch 'otel-custom-metrics-test' of https://github.com/Miqueas…
Miqueasher 6e55891
Revert " adding in test files, and testing PR changes"
Miqueasher c840ace
adding in test files, and testing PR changes
Miqueasher f6b3b67
resolving merge conflicts
Miqueasher 3d7b835
updated test region
Miqueasher ee3b357
updating validator run path
Miqueasher 5fe3e7a
moved custom-metric-validation file location
Miqueasher 3985b9b
removing test file and deleting delete-me files
Miqueasher 12f6e21
updating sdk.version
Miqueasher a2c4041
updating sdk.version
Miqueasher e1717f1
testing 2nd round pr updates
Miqueasher c1401e7
fixing typos
Miqueasher 02b0489
updating ec2-default-test
Miqueasher f1ab5d1
updating ec2-default-test
Miqueasher 6f29d95
updating cloud region to bypass population error for aws_region var
Miqueasher 113714c
removing test and delete-me files
Miqueasher 83f2e00
testing pr changes
Miqueasher a48939c
updating resource attribute
Miqueasher ba427b1
updating val templates
Miqueasher 62ac400
updating val templates
Miqueasher 0e0f4c0
testing removal of OTEL_SERVICE_NAME
Miqueasher 7110e2d
updating val templates
Miqueasher 481d8c1
updating val template
Miqueasher dc6afc7
updating val template
Miqueasher 2adaa52
updating Metric validator and CWS.java
Miqueasher 136efcf
updating Metric validator and CWS.java
Miqueasher 49f9b5f
removing test and delete-me files
Miqueasher ae79f8c
testing pr changes
Miqueasher b60a0e6
removing test and delete-me files
Miqueasher d4657c2
adding space between lines
Miqueasher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
majanjua-amzn marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...main/resources/expected-data-template/python/ec2/default/aws-otel-custom-metrics.mustache
majanjua-amzn marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# OpenTelemetry Custom Metrics Validation Templates - AWS SDK Call Only | ||
# ANY_VALUE defines a string to = 'ANY_VALUE' to pass validation testing | ||
- | ||
metricName: custom_export_counter | ||
namespace: CWAgent | ||
majanjua-amzn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
dimensions: | ||
- | ||
name: Environment | ||
value: ec2:default | ||
- | ||
name: Service | ||
value: {{serviceName}} | ||
- | ||
name: aws.local.service | ||
value: {{serviceName}} | ||
- | ||
name: cloud.account.id | ||
value: ANY_VALUE | ||
Miqueasher marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- | ||
name: cloud.availability_zone | ||
value: ANY_VALUE | ||
- | ||
name: cloud.platform | ||
value: aws_ec2 | ||
- | ||
name: cloud.provider | ||
value: aws | ||
- | ||
name: cloud.region | ||
value: ANY_VALUE | ||
- | ||
name: host.id | ||
value: ANY_VALUE | ||
- | ||
name: host.name | ||
value: ANY_VALUE | ||
- | ||
name: host.type | ||
value: ANY_VALUE | ||
- | ||
name: operation.type | ||
value: custom_export_1 | ||
- | ||
name: service.name | ||
value: {{serviceName}} | ||
- | ||
name: telemetry.auto.version | ||
value: ANY_VALUE | ||
- | ||
name: telemetry.sdk.language | ||
value: python | ||
- | ||
name: telemetry.sdk.name | ||
value: opentelemetry | ||
- | ||
name: telemetry.sdk.version | ||
value: ANY_VALUE | ||
- | ||
metricName: test_histogram | ||
namespace: CWAgent | ||
dimensions: | ||
- | ||
name: Environment | ||
value: ec2:default | ||
- | ||
name: Service | ||
value: {{serviceName}} | ||
- | ||
name: aws.local.service | ||
value: {{serviceName}} | ||
- | ||
name: cloud.account.id | ||
value: ANY_VALUE | ||
- | ||
name: cloud.availability_zone | ||
value: ANY_VALUE | ||
- | ||
name: cloud.platform | ||
value: aws_ec2 | ||
- | ||
name: cloud.provider | ||
value: aws | ||
- | ||
name: cloud.region | ||
value: ANY_VALUE | ||
- | ||
name: host.id | ||
value: ANY_VALUE | ||
- | ||
name: host.name | ||
value: ANY_VALUE | ||
- | ||
name: host.type | ||
value: ANY_VALUE | ||
- | ||
name: operation.type | ||
value: histogram | ||
- | ||
name: service.name | ||
value: {{serviceName}} | ||
- | ||
name: telemetry.auto.version | ||
value: ANY_VALUE | ||
- | ||
name: telemetry.sdk.language | ||
value: python | ||
- | ||
name: telemetry.sdk.name | ||
value: opentelemetry | ||
- | ||
name: telemetry.sdk.version | ||
value: ANY_VALUE |
6 changes: 6 additions & 0 deletions
6
validator/src/main/resources/validations/python/ec2/default/custom-metric-validation.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- | ||
validationType: "cw-metric" | ||
httpPath: "aws-sdk-call" | ||
httpMethod: "get" | ||
callingType: "http-with-query" | ||
expectedMetricTemplate: "PYTHON_EC2_DEFAULT_AWS_OTEL_CUSTOM_METRIC" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.