Skip to content

Commit 04377af

Browse files
committed
pmrep conf: use bpf instead of bcc pmda for proc net metrics
Now with the new BPF PMDA netatop module available switch the pmrep per-process proc-activity, proc-net, and proc-net-ext metricsets to use it. Also replace the earlier call counts with the more commonly used packet counts in proc-net-ext. Lastly, remove commented out bcc.proc.io.total reference from proc-io, the metricset already includes the proc.io.total_bytes derived metric.
1 parent 79beed0 commit 04377af

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/pmrep/conf/proc.conf

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ iotot.label = IO KB/s
7676
iotot.formula = instant(proc.io.read_bytes) + instant(proc.io.write_bytes) - instant(proc.io.cancelled_write_bytes)
7777
iotot.unit = KB/s
7878
iotot.width = 8
79-
net = bcc.proc.net.total.bytes
79+
net = bpf.proc.net.total.bytes
8080
net.label = Net KB/s
81-
net.formula = bcc.proc.net.tcp.recv.bytes + bcc.proc.net.tcp.send.bytes + bcc.proc.net.udp.recv.bytes + bcc.proc.net.udp.send.bytes
81+
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
8282
net.unit = KB/s
8383
net.width = 8
8484

@@ -194,7 +194,6 @@ proc.io.write_bytes = ,,KB/s,,
194194
proc.io.total_bytes = ,,KB/s,,
195195
proc.io.cancelled_write_bytes = ,,KB/s,,
196196
proc.psinfo.delayacct_blkio_time = ,,,,
197-
#bcc.proc.io.total = ,,KB/s,,
198197

199198
[proc-io-ext]
200199
instinfo = no
@@ -209,19 +208,19 @@ proc.io.syscw = ,,,,
209208
instinfo = no
210209
unitinfo = yes
211210
precision = 2
212-
bcc.proc.net.tcp.recv.bytes = TCP recv,,KB/s,,
213-
bcc.proc.net.tcp.send.bytes = TCP send,,KB/s,,
214-
bcc.proc.net.udp.recv.bytes = UDP recv,,KB/s,,
215-
bcc.proc.net.udp.send.bytes = UDP send,,KB/s,,
211+
bpf.proc.net.tcp.recv.bytes = TCP recv,,KB/s,,
212+
bpf.proc.net.tcp.send.bytes = TCP send,,KB/s,,
213+
bpf.proc.net.udp.recv.bytes = UDP recv,,KB/s,,
214+
bpf.proc.net.udp.send.bytes = UDP send,,KB/s,,
216215

217216
[proc-net-ext]
218217
instinfo = no
219218
unitinfo = yes
220219
precision = 0
221-
bcc.proc.net.tcp.recv.calls = ,,,,
222-
bcc.proc.net.tcp.send.calls = ,,,,
223-
bcc.proc.net.udp.recv.calls = ,,,,
224-
bcc.proc.net.udp.send.calls = ,,,,
220+
bpf.proc.net.tcp.recv.packets = TCP recv pkts,,,,
221+
bpf.proc.net.tcp.send.packets = TCP send pkts,,,,
222+
bpf.proc.net.udp.recv.packets = UDP recv pkts,,,,
223+
bpf.proc.net.udp.send.packets = UDP send pkts,,,,
225224

226225
[proc-children]
227226
instinfo = no

0 commit comments

Comments
 (0)