2020-01-17 04:51:33 +08:00
|
|
|
# InfiniBand Input Plugin
|
|
|
|
|
|
2020-01-17 05:56:23 +08:00
|
|
|
This plugin gathers statistics for all InfiniBand devices and ports on the
|
|
|
|
|
system. These are the counters that can be found in
|
|
|
|
|
`/sys/class/infiniband/<dev>/port/<port>/counters/`
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2020-01-17 05:56:23 +08:00
|
|
|
**Supported Platforms**: Linux
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2022-10-27 03:58:36 +08:00
|
|
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
|
|
|
|
|
|
|
|
|
In addition to the plugin-specific configuration settings, plugins support
|
|
|
|
|
additional global and plugin configuration settings. These settings are used to
|
|
|
|
|
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
|
|
|
|
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
|
|
|
|
|
2023-01-12 23:55:21 +08:00
|
|
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
2022-10-27 03:58:36 +08:00
|
|
|
|
2021-11-25 03:18:53 +08:00
|
|
|
## Configuration
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 06:01:21 +08:00
|
|
|
# Gets counters from all InfiniBand cards and ports installed
|
2023-03-06 19:18:43 +08:00
|
|
|
# This plugin ONLY supports Linux
|
2020-01-17 04:51:33 +08:00
|
|
|
[[inputs.infiniband]]
|
2020-01-17 05:56:23 +08:00
|
|
|
# no configuration
|
2020-01-17 04:51:33 +08:00
|
|
|
```
|
|
|
|
|
|
2021-11-25 03:18:53 +08:00
|
|
|
## Metrics
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2020-01-17 05:56:23 +08:00
|
|
|
Actual metrics depend on the InfiniBand devices, the plugin uses a simple
|
|
|
|
|
mapping from counter -> counter value.
|
|
|
|
|
|
|
|
|
|
[Information about the counters][counters] collected is provided by Mellanox.
|
|
|
|
|
|
|
|
|
|
[counters]: https://community.mellanox.com/s/article/understanding-mlx5-linux-counters-and-status-parameters
|
|
|
|
|
|
|
|
|
|
- infiniband
|
|
|
|
|
- tags:
|
|
|
|
|
- device
|
|
|
|
|
- port
|
|
|
|
|
- fields:
|
|
|
|
|
- excessive_buffer_overrun_errors (integer)
|
|
|
|
|
- link_downed (integer)
|
|
|
|
|
- link_error_recovery (integer)
|
|
|
|
|
- local_link_integrity_errors (integer)
|
|
|
|
|
- multicast_rcv_packets (integer)
|
|
|
|
|
- multicast_xmit_packets (integer)
|
|
|
|
|
- port_rcv_constraint_errors (integer)
|
|
|
|
|
- port_rcv_data (integer)
|
|
|
|
|
- port_rcv_errors (integer)
|
|
|
|
|
- port_rcv_packets (integer)
|
|
|
|
|
- port_rcv_remote_physical_errors (integer)
|
|
|
|
|
- port_rcv_switch_relay_errors (integer)
|
|
|
|
|
- port_xmit_constraint_errors (integer)
|
|
|
|
|
- port_xmit_data (integer)
|
|
|
|
|
- port_xmit_discards (integer)
|
|
|
|
|
- port_xmit_packets (integer)
|
|
|
|
|
- port_xmit_wait (integer)
|
|
|
|
|
- symbol_error (integer)
|
|
|
|
|
- unicast_rcv_packets (integer)
|
|
|
|
|
- unicast_xmit_packets (integer)
|
|
|
|
|
- VL15_dropped (integer)
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2021-11-25 03:18:53 +08:00
|
|
|
## Example Output
|
2020-01-17 04:51:33 +08:00
|
|
|
|
2023-04-04 19:43:49 +08:00
|
|
|
```text
|
2020-01-17 05:56:23 +08:00
|
|
|
infiniband,device=mlx5_0,port=1 VL15_dropped=0i,excessive_buffer_overrun_errors=0i,link_downed=0i,link_error_recovery=0i,local_link_integrity_errors=0i,multicast_rcv_packets=0i,multicast_xmit_packets=0i,port_rcv_constraint_errors=0i,port_rcv_data=237159415345822i,port_rcv_errors=0i,port_rcv_packets=801977655075i,port_rcv_remote_physical_errors=0i,port_rcv_switch_relay_errors=0i,port_xmit_constraint_errors=0i,port_xmit_data=238334949937759i,port_xmit_discards=0i,port_xmit_packets=803162651391i,port_xmit_wait=4294967295i,symbol_error=0i,unicast_rcv_packets=801977655075i,unicast_xmit_packets=803162651391i 1573125558000000000
|
2020-01-17 04:51:33 +08:00
|
|
|
```
|