forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Elastic Fabric Adapter (EFA) metric collection to awscontainerins…
…ightreceiver. (open-telemetry#186) * Add Elastic Fabric Adapter (EFA) metric collection to awscontainerinsightreceiver. The new component scrapes hardware counters from /sys/class/infiniband on disk. The layout of that directory is: /sys/class/infiniband/<device name> └── ports └── 1 └── hw_counters ├── rdma_read_bytes ├── rdma_write_bytes ├── rdma_write_recv_bytes ├── rx_bytes ├── rx_drops └── tx_bytes These are cumulative counters and so they are converted to deltas before sending down the pipeline. We sum up data from all ports. The device data is joined with data from the kubelet podresources API which tells us which container a given device is assigned to. The metrics are reported at container, pod, and node levels. This commit also refactors some metric decoration code from cadvisor to a common localnode decorator, intended to be used by any awscontainerinsightreceiver component that gathers metrics from the local node (as oppoosed to e.g. the k8s control plane scraper). This is because we want to share the logic of populating PodName, Kubernetes labels, etc. I also renamed RawContainerInsightsMetric to CIMetricImpl for brevity.
- Loading branch information
Showing
51 changed files
with
1,638 additions
and
359 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
Oops, something went wrong.