mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
f6dae7c013
* Add time-based derivatived (e.g. bandwidth) to some collectors * Add documentation * Add comments * Fix: Only compute rates with a valid previous state * Only compute rates with a valid previous state * Define const values for net/dev fields * Set default config values * Add comments * Refactor: Consolidate data structures * Refactor: Consolidate data structures * Refactor: Avoid struct deep copy * Refactor: Avoid redundant tag maps * Refactor: Use int64 type for absolut values Co-authored-by: Holger Obermaier <40787752+ho-ob@users.noreply.github.com>
33 lines
883 B
Markdown
33 lines
883 B
Markdown
|
|
## `ibstat` collector
|
|
|
|
```json
|
|
"ibstat": {
|
|
"exclude_devices": [
|
|
"mlx4"
|
|
],
|
|
"send_abs_values": true,
|
|
"send_derived_values": true
|
|
}
|
|
```
|
|
|
|
The `ibstat` collector includes all Infiniband devices that can be
|
|
found below `/sys/class/infiniband/` and where any of the ports provides a
|
|
LID file (`/sys/class/infiniband/<dev>/ports/<port>/lid`)
|
|
|
|
The devices can be filtered with the `exclude_devices` option in the configuration.
|
|
|
|
For each found LID the collector reads data through the sysfs files below `/sys/class/infiniband/<device>`.
|
|
|
|
Metrics:
|
|
* `ib_recv`
|
|
* `ib_xmit`
|
|
* `ib_recv_pkts`
|
|
* `ib_xmit_pkts`
|
|
* `ib_recv_bw` (if `send_derived_values == true`)
|
|
* `ib_xmit_bw` (if `send_derived_values == true`)
|
|
* `ib_recv_pkts_bw` (if `send_derived_values == true`)
|
|
* `ib_xmit_pkts_bw` (if `send_derived_values == true`)
|
|
|
|
The collector adds a `device` tag to all metrics
|