VictoriaMetrics/lib/cgroup
Aliaksandr Valialkin ead66155ef
lib/cgroup: expose process_cpu_cores_available metric
This metric shows the number of CPU cores available to the process.
This allows creating alerting rules on CPU saturation with the following query:

    rate(process_cpu_seconds_total[5m]) / process_cpu_cores_available > 0.9

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2107
2022-01-31 20:24:41 +02:00
..
testdata adds cgroupsv2 support (#1283) 2021-05-13 09:02:13 +03:00
cpu_test.go lib/cgroup: document the ability to detect cgroup v2 memory and cpu limits. This is follow-up for b50024812e 2021-05-13 09:26:20 +03:00
cpu.go lib/cgroup: expose process_cpu_cores_available metric 2022-01-31 20:24:41 +02:00
mem_test.go lib/cgroup: follow-up after b9bf3cbe3e 2021-02-08 15:54:38 +02:00
mem.go lib/cgroup: set GOGC to 50 by default if it isn't set 2021-07-05 15:16:11 +03:00
util_test.go adds cgroupsv2 support (#1283) 2021-05-13 09:02:13 +03:00
util.go lib/cgroup: document the ability to detect cgroup v2 memory and cpu limits. This is follow-up for b50024812e 2021-05-13 09:26:20 +03:00