mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
195d0794b0
* Add cpu_used (all-cpu_idle) to CpustatCollector * Update to line-protocol/v2 * Update runonce.yml with Golang 1.20 * Update fsnotify in LIKWID Collector * Use not a pointer to line-protocol.Encoder * Simplify Makefile * Use only as many arguments as required * Allow sum function to handle non float types * Allow values to be a slice of type float64, float32, int, int64, int32, bool * Use generic function to simplify code * Add missing case for type []int32 * Use generic function to compute minimum * Use generic function to compute maximum * Use generic function to compute average * Add error value to sumAnyType * Use generic function to compute median * For older versions of go slices is not part of the installation * Remove old entries from go.sum * Use simpler sort function * Compute metrics ib_total and ib_total_pkts * Add aggregated metrics. Add missing units * Update likwidMetric.go Fixes a potential bug when `fsnotify.NewWatcher()` fails with an error * Completly avoid memory allocations in infinibandMetric read() * Fixed initialization: Initalization and measurements should run in the same thread --------- Co-authored-by: Holger Obermaier <40787752+ho-ob@users.noreply.github.com>
26 lines
483 B
Markdown
26 lines
483 B
Markdown
|
|
## `cpustat` collector
|
|
|
|
```json
|
|
"cpustat": {
|
|
"exclude_metrics": [
|
|
"cpu_idle"
|
|
]
|
|
}
|
|
```
|
|
|
|
The `cpustat` collector reads data from `/proc/stat` and outputs a handful **node** and **hwthread** metrics. If a metric is not required, it can be excluded from forwarding it to the sink.
|
|
|
|
Metrics:
|
|
|
|
* `cpu_user`
|
|
* `cpu_nice`
|
|
* `cpu_system`
|
|
* `cpu_idle`
|
|
* `cpu_iowait`
|
|
* `cpu_irq`
|
|
* `cpu_softirq`
|
|
* `cpu_steal`
|
|
* `cpu_guest`
|
|
* `cpu_guest_nice`
|
|
* `cpu_used` = `cpu_* - cpu_idle` |