mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 12:37:25 +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>
34 lines
766 B
Markdown
34 lines
766 B
Markdown
|
|
## `lustrestat` collector
|
|
|
|
```json
|
|
"lustrestat": {
|
|
"procfiles" : [
|
|
"/proc/fs/lustre/llite/lnec-XXXXXX/stats"
|
|
],
|
|
"exclude_metrics": [
|
|
"setattr",
|
|
"getattr"
|
|
],
|
|
"send_abs_values" : true,
|
|
"send_derived_values" : true
|
|
}
|
|
```
|
|
|
|
The `lustrestat` collector reads from the procfs stat files for Lustre like `/proc/fs/lustre/llite/lnec-XXXXXX/stats`.
|
|
|
|
Metrics:
|
|
* `lustre_read_bytes`
|
|
* `lustre_read_requests`
|
|
* `lustre_write_bytes`
|
|
* `lustre_write_requests`
|
|
* `lustre_open`
|
|
* `lustre_close`
|
|
* `lustre_getattr`
|
|
* `lustre_setattr`
|
|
* `lustre_statfs`
|
|
* `lustre_inode_permission`
|
|
* `lustre_read_bytes_bw` (if `send_derived_values == true`)
|
|
* `lustre_write_bytes_bw` (if `send_derived_values == true`)
|
|
|
|
This collector adds an `device` tag. |