Collect EFA metrics
You can use the CloudWatch agent to collect Elastic Fabric Adapter (EFA) metrics from Linux
servers that have EFA devices attached. To set this up, add an efa section
inside the metrics_collected section of the CloudWatch agent configuration file.
For more information, see Linux section.
Note
All EFA metrics are reported as delta values. The agent automatically applies cumulative-to-delta conversion.
The following metrics can be collected.
| Metric | Description |
|---|---|
|
Bytes transmitted on the EFA device. |
|
Bytes received on the EFA device. |
|
Packets transmitted on the EFA device. |
|
Packets received on the EFA device. |
|
Received packets dropped on the EFA device. |
|
Bytes sent via EFA send operations. |
|
Send work requests completed. |
|
Bytes received via EFA receive operations. |
|
Receive work requests completed. |
|
Bytes transferred via RDMA read operations. |
|
Bytes received in RDMA read responses. |
|
RDMA read work requests completed. |
|
RDMA read work request errors. |
|
Bytes transferred via RDMA write operations. |
|
Bytes received via RDMA write operations. |
|
RDMA write work requests completed. |
|
RDMA write work request errors. |
|
Bytes retransmitted. |
|
Packets retransmitted. |
|
Retransmission timeout events. |
|
Impaired remote connection events. |
|
Unresponsive remote endpoint events. |
Dimensions
Each EFA metric is emitted with the following dimensions by default:
device– The EFA device name.port– The EFA port number.eniId– The ENI ID of the EFA NIC.
To append additional dimensions such as InstanceId, use the
append_dimensions field in the metrics section of the
agent configuration file.
Example configuration
The following example configuration collects a subset of EFA metrics every 60 seconds
and appends the InstanceId dimension to each metric.
{ "metrics": { "append_dimensions": { "InstanceId": "${aws:InstanceId}" }, "metrics_collected": { "efa": { "measurement": [ "efa_tx_bytes", "efa_rx_bytes", "efa_tx_pkts", "efa_rx_pkts", "efa_rx_dropped", "efa_rdma_read_bytes", "efa_rdma_write_bytes" ], "metrics_collection_interval": 60 } } } }