VictoriaMetrics/lib/cgroup
Aliaksandr Valialkin 566e12874d
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:25:15 +02:00
..
testdata adds cgroupsv2 support (#1283) 2021-05-13 09:27:33 +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:27:35 +03:00
cpu.go lib/cgroup: expose process_cpu_cores_available metric 2022-01-31 20:25:15 +02:00
mem_test.go lib/cgroup: follow-up after b9bf3cbe3e 2021-02-08 16:01:26 +02:00
mem.go lib/cgroup: set GOGC to 50 by default if it isn't set 2021-07-05 12:34:01 +03:00
util_test.go adds cgroupsv2 support (#1283) 2021-05-13 09:27:33 +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:27:35 +03:00