Skip to content

Commit

Permalink
pmrep conf: correct collectl cpu metrics to match current versions
Browse files Browse the repository at this point in the history
collectl docs state about "CPU Data, collectl -sc" the following:

cpu
Percent of time the cpu was busy during the current interval averaged across all
CPUs and is actually the total percentage of time the CPU in one of the following:
system, user, nice, irq, soft-irq and steal.  Note that this does NOT include time
spend in I/O wait.

sys
Percentage of time the cpu was executing in system mode during the current
interval.  This includes all those modes as above except user and nice to to
determine the amount of time spent as a user you need to subtract these from
the total cpu field.

Adjust the corresponding metricset formulas accordingly. No QA impact.
  • Loading branch information
myllynen committed Jul 8, 2024
1 parent 4a4da11 commit f1962a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmrep/conf/collectl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ timestamp = yes
precision = 2
delimiter = " "
cpu = cpu,,,,5
cpu.formula = 100 * (rate(kernel.all.cpu.user) + rate(kernel.all.cpu.nice)) / hinv.ncpu
cpu.formula = 100 * (rate(kernel.all.cpu.sys) + rate(kernel.all.cpu.intr) + rate(kernel.all.cpu.steal) + rate(kernel.all.cpu.user) + rate(kernel.all.cpu.nice)) / hinv.ncpu
sys = sys,,,,5
sys.formula = 100 * rate(kernel.all.cpu.sys) / hinv.ncpu
sys.formula = 100 * (rate(kernel.all.cpu.sys) + rate(kernel.all.cpu.intr) + rate(kernel.all.cpu.steal)) / hinv.ncpu
kernel.all.intr = intr/s,,,,7
kernel.all.pswitch = cswch/s,,,,8

Expand Down

0 comments on commit f1962a3

Please sign in to comment.