Skip to content

Commit

Permalink
pmrep conf: use newly added derived metric feature in proc metrics
Browse files Browse the repository at this point in the history
Since scaling is requested we need to ignore the incompatible
case of novalue() which would otherwise cause an error.
  • Loading branch information
myllynen committed Apr 19, 2024
1 parent b4f4ff5 commit 1dd0664
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pmrep/conf/proc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ instinfo = no
unitinfo = no
precision = 2
repeat_header = auto
ignore_incompat = yes
proc.psinfo.pid = PID,,,,7
proc.psinfo.cmd = Command,,,,12
cpupct = proc.psinfo.cpu.pct
Expand Down Expand Up @@ -77,7 +78,12 @@ iotot.unit = KB/s
iotot.width = 8
net = bpf.proc.net.total.bytes
net.label = Net KB/s
net.formula = bpf.proc.net.tcp.recv.bytes + bpf.proc.net.tcp.send.bytes + bpf.proc.net.udp.recv.bytes + bpf.proc.net.udp.send.bytes
net.formula =
defined(bpf.proc.net.tcp.recv.bytes)
?
bpf.proc.net.tcp.recv.bytes + bpf.proc.net.tcp.send.bytes + bpf.proc.net.udp.recv.bytes + bpf.proc.net.udp.send.bytes
:
novalue()
net.unit = KB/s
net.width = 8

Expand Down

0 comments on commit 1dd0664

Please sign in to comment.