Skip to content

Issue during scrape qdiscs RED #14

@Mickaelh51

Description

@Mickaelh51

Hi,
first, thanks a lot for your work, it's very interesting !

I have an issue when I want to scrape qdiscs

time=2025-04-22T12:51:08.473+02:00 level=DEBUG msg="starting metrics scrape"
time=2025-04-22T12:51:08.480+02:00 level=ERROR msg="failed to get qdiscs" interface=bond0 err="unmarshalRed()\t4\n\t[0 0 0 0 15 0 0 0]"
time=2025-04-22T12:51:08.491+02:00 level=ERROR msg="failed to get qdiscs" interface=bond0 err=EOF
time=2025-04-22T12:51:08.491+02:00 level=DEBUG msg="metric scrape complete"

I use: tc_exporter_0.8.3_linux_amd64

you can see my qdiscs:

qdisc htb 1: root refcnt 17 r2q 12500 default 0x33 direct_packets_stat 0 direct_qlen 1000
 Sent 4854761 bytes 84238 pkt (dropped 0, overlimits 84239 requeues 0) 
 backlog 0b 0p requeues 0
qdisc sfq 801c: parent 1:28 limit 127p quantum 9014b depth 127 divisor 1024 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc sfq 801a: parent 1:14 limit 127p quantum 9014b depth 127 divisor 1024 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc red 8020: parent 1:33 limit 72Kb min 9Kb max 18Kb 
 Sent 4854703 bytes 84237 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
  marked 0 early 0 pdrop 0 other 0 
qdisc sfq 801b: parent 1:1e limit 127p quantum 9014b depth 127 divisor 1024 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc sfq 801d: parent 1:32 limit 127p quantum 9014b depth 127 divisor 1024 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc fq_codel 801f: parent 1:a limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb drop_batch 64 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0

issue comes from unmarshalRed from q_red.go in go-tc project

can you help me to find the cause of this issue please ?

thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions