-
Notifications
You must be signed in to change notification settings - Fork 263
Add support for configuring EFA receiver on EC2 via JSON #2093
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f539e9e
Add EFA receiver translator for JSON config translation
mitali-salvi 31d47dd
Integrate EFA receiver into host pipeline and delta processor
mitali-salvi df22c22
Add EFA JSON schema definition for config validation
mitali-salvi b28b29e
Merge branch 'main' into feature/efa-receiver-translator
mitali-salvi 4e79df7
Address review feedback: require measurement, use reflection for metr…
mitali-salvi d3f4db3
Remove append_dimensions from EFA schema and require measurement
mitali-salvi 66f99ad
Add EFA EC2 integration test workflow
mitali-salvi 2c8c095
Integrate EFA test into CI pipeline via test-artifacts.yml
mitali-salvi 5ba5c35
Point test repo branch to feature/efa-ec2-integration-test for CI
mitali-salvi 5bb7039
Merge remote-tracking branch 'origin/main' into feature/efa-receiver-…
mitali-salvi 3248c34
Remove wildcard measurement support and add drop_original_metrics for…
mitali-salvi 6ca01c5
Remove EFA integration test workflow changes
mitali-salvi 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
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
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
10 changes: 10 additions & 0 deletions
10
translator/translate/otel/receiver/awsefa/testdata/agentInterval.json
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,10 @@ | ||
| { | ||
| "agent": { | ||
| "metrics_collection_interval": 120 | ||
| }, | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": {} | ||
|
sky333999 marked this conversation as resolved.
|
||
| } | ||
| } | ||
| } | ||
1 change: 1 addition & 0 deletions
1
translator/translate/otel/receiver/awsefa/testdata/agentInterval.yaml
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 @@ | ||
| collection_interval: 120s |
13 changes: 13 additions & 0 deletions
13
translator/translate/otel/receiver/awsefa/testdata/config.json
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,13 @@ | ||
| { | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": { | ||
| "measurement": [ | ||
| "efa_tx_bytes", | ||
| "efa_rx_bytes" | ||
| ], | ||
| "metrics_collection_interval": 30 | ||
| } | ||
| } | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
translator/translate/otel/receiver/awsefa/testdata/config.yaml
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,46 @@ | ||
| collection_interval: 30s | ||
| metrics: | ||
| efa_tx_bytes: | ||
| enabled: true | ||
| efa_rx_bytes: | ||
| enabled: true | ||
| efa_impaired_remote_conn_events: | ||
| enabled: false | ||
| efa_rdma_read_bytes: | ||
| enabled: false | ||
| efa_rdma_read_resp_bytes: | ||
| enabled: false | ||
| efa_rdma_read_wr_err: | ||
| enabled: false | ||
| efa_rdma_read_wrs: | ||
| enabled: false | ||
| efa_rdma_write_bytes: | ||
| enabled: false | ||
| efa_rdma_write_recv_bytes: | ||
| enabled: false | ||
| efa_rdma_write_wr_err: | ||
| enabled: false | ||
| efa_rdma_write_wrs: | ||
| enabled: false | ||
| efa_recv_bytes: | ||
| enabled: false | ||
| efa_recv_wrs: | ||
| enabled: false | ||
| efa_retrans_bytes: | ||
| enabled: false | ||
| efa_retrans_pkts: | ||
| enabled: false | ||
| efa_retrans_timeout_events: | ||
| enabled: false | ||
| efa_rx_dropped: | ||
| enabled: false | ||
| efa_rx_pkts: | ||
| enabled: false | ||
| efa_send_bytes: | ||
| enabled: false | ||
| efa_send_wrs: | ||
| enabled: false | ||
| efa_tx_pkts: | ||
| enabled: false | ||
| efa_unresponsive_remote_events: | ||
| enabled: false |
7 changes: 7 additions & 0 deletions
7
translator/translate/otel/receiver/awsefa/testdata/emptyConfig.json
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,7 @@ | ||
| { | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": {} | ||
| } | ||
| } | ||
| } |
1 change: 1 addition & 0 deletions
1
translator/translate/otel/receiver/awsefa/testdata/emptyConfig.yaml
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 @@ | ||
| collection_interval: 60s |
9 changes: 9 additions & 0 deletions
9
translator/translate/otel/receiver/awsefa/testdata/emptyMeasurements.json
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,9 @@ | ||
| { | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": { | ||
| "measurement": [] | ||
| } | ||
| } | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
translator/translate/otel/receiver/awsefa/testdata/emptyMeasurements.yaml
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,46 @@ | ||
| collection_interval: 60s | ||
| metrics: | ||
| efa_impaired_remote_conn_events: | ||
| enabled: false | ||
| efa_rdma_read_bytes: | ||
| enabled: false | ||
| efa_rdma_read_resp_bytes: | ||
| enabled: false | ||
| efa_rdma_read_wr_err: | ||
| enabled: false | ||
| efa_rdma_read_wrs: | ||
| enabled: false | ||
| efa_rdma_write_bytes: | ||
| enabled: false | ||
| efa_rdma_write_recv_bytes: | ||
| enabled: false | ||
| efa_rdma_write_wr_err: | ||
| enabled: false | ||
| efa_rdma_write_wrs: | ||
| enabled: false | ||
| efa_recv_bytes: | ||
| enabled: false | ||
| efa_recv_wrs: | ||
| enabled: false | ||
| efa_retrans_bytes: | ||
| enabled: false | ||
| efa_retrans_pkts: | ||
| enabled: false | ||
| efa_retrans_timeout_events: | ||
| enabled: false | ||
| efa_rx_bytes: | ||
| enabled: false | ||
| efa_rx_dropped: | ||
| enabled: false | ||
| efa_rx_pkts: | ||
| enabled: false | ||
| efa_send_bytes: | ||
| enabled: false | ||
| efa_send_wrs: | ||
| enabled: false | ||
| efa_tx_bytes: | ||
| enabled: false | ||
| efa_tx_pkts: | ||
| enabled: false | ||
| efa_unresponsive_remote_events: | ||
| enabled: false |
12 changes: 12 additions & 0 deletions
12
translator/translate/otel/receiver/awsefa/testdata/nonPrefixedConfig.json
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,12 @@ | ||
| { | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": { | ||
| "measurement": [ | ||
| "tx_bytes", | ||
| "rx_dropped" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
translator/translate/otel/receiver/awsefa/testdata/nonPrefixedConfig.yaml
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,46 @@ | ||
| collection_interval: 60s | ||
| metrics: | ||
| efa_tx_bytes: | ||
| enabled: true | ||
| efa_rx_dropped: | ||
| enabled: true | ||
| efa_impaired_remote_conn_events: | ||
| enabled: false | ||
| efa_rdma_read_bytes: | ||
| enabled: false | ||
| efa_rdma_read_resp_bytes: | ||
| enabled: false | ||
| efa_rdma_read_wr_err: | ||
| enabled: false | ||
| efa_rdma_read_wrs: | ||
| enabled: false | ||
| efa_rdma_write_bytes: | ||
| enabled: false | ||
| efa_rdma_write_recv_bytes: | ||
| enabled: false | ||
| efa_rdma_write_wr_err: | ||
| enabled: false | ||
| efa_rdma_write_wrs: | ||
| enabled: false | ||
| efa_recv_bytes: | ||
| enabled: false | ||
| efa_recv_wrs: | ||
| enabled: false | ||
| efa_retrans_bytes: | ||
| enabled: false | ||
| efa_retrans_pkts: | ||
| enabled: false | ||
| efa_retrans_timeout_events: | ||
| enabled: false | ||
| efa_rx_bytes: | ||
| enabled: false | ||
| efa_rx_pkts: | ||
| enabled: false | ||
| efa_send_bytes: | ||
| enabled: false | ||
| efa_send_wrs: | ||
| enabled: false | ||
| efa_tx_pkts: | ||
| enabled: false | ||
| efa_unresponsive_remote_events: | ||
| enabled: false |
12 changes: 12 additions & 0 deletions
12
translator/translate/otel/receiver/awsefa/testdata/overrideInterval.json
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,12 @@ | ||
| { | ||
| "agent": { | ||
| "metrics_collection_interval": 120 | ||
| }, | ||
| "metrics": { | ||
| "metrics_collected": { | ||
| "efa": { | ||
| "metrics_collection_interval": 15 | ||
| } | ||
| } | ||
| } | ||
| } |
1 change: 1 addition & 0 deletions
1
translator/translate/otel/receiver/awsefa/testdata/overrideInterval.yaml
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 @@ | ||
| collection_interval: 15s |
Oops, something went wrong.
Oops, something went wrong.
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.