Skip to content

Darwin network metrics reset at 4GB #3333

@llamafilm

Description

@llamafilm

This was supposedly fixed a few years ago in #1318 but I found the same problem today in version 1.9.1. The netdev metrics reset every 4GB.
In this example, the real network throughput is approximately 5Gbps, so the counter resets approximately every 6 seconds. I used a 1m scrape interval, so the graph is meaningless:

Image

I'm running macOS Sonoma 14.7.1. This simple curl loop shows the issue:

% while true; do curl -s "http://localhost:9100/metrics" | grep 'node_network_receive_bytes_total{device="en0"}'; sleep 1; done

node_network_receive_bytes_total{device="en0"} 3.34408192e+09
node_network_receive_bytes_total{device="en0"} 4.015455232e+09
node_network_receive_bytes_total{device="en0"} 3.86028544e+08
node_network_receive_bytes_total{device="en0"} 1.062334464e+09
node_network_receive_bytes_total{device="en0"} 1.73875712e+09
node_network_receive_bytes_total{device="en0"} 2.416785408e+09
node_network_receive_bytes_total{device="en0"} 2.879276032e+09
node_network_receive_bytes_total{device="en0"} 2.880131072e+09
node_network_receive_bytes_total{device="en0"} 2.880963584e+09
node_network_receive_bytes_total{device="en0"} 2.881806336e+09
node_network_receive_bytes_total{device="en0"} 2.882654208e+09
node_network_receive_bytes_total{device="en0"} 2.883104768e+09
node_network_receive_bytes_total{device="en0"} 2.88312832e+09
node_network_receive_bytes_total{device="en0"} 2.883255296e+09
node_network_receive_bytes_total{device="en0"} 3.194883072e+09
node_network_receive_bytes_total{device="en0"} 3.867862016e+09
node_network_receive_bytes_total{device="en0"} 2.54119936e+08
node_network_receive_bytes_total{device="en0"} 9.3373952e+08
node_network_receive_bytes_total{device="en0"} 1.60914432e+09
node_network_receive_bytes_total{device="en0"} 2.288283648e+09
node_network_receive_bytes_total{device="en0"} 2.655611904e+09
node_network_receive_bytes_total{device="en0"} 2.656459776e+09
node_network_receive_bytes_total{device="en0"} 2.657281024e+09
node_network_receive_bytes_total{device="en0"} 2.658123776e+09
node_network_receive_bytes_total{device="en0"} 2.65896448e+09
node_network_receive_bytes_total{device="en0"} 2.659410944e+09
node_network_receive_bytes_total{device="en0"} 2.659429376e+09
node_network_receive_bytes_total{device="en0"} 2.659473408e+09
node_network_receive_bytes_total{device="en0"} 2.910662656e+09
node_network_receive_bytes_total{device="en0"} 3.567008768e+09
node_network_receive_bytes_total{device="en0"} 4.25892864e+09
node_network_receive_bytes_total{device="en0"} 6.4862208e+08
node_network_receive_bytes_total{device="en0"} 1.338104832e+09
node_network_receive_bytes_total{device="en0"} 2.018372608e+09
node_network_receive_bytes_total{device="en0"} 2.547497984e+09
node_network_receive_bytes_total{device="en0"} 2.548366336e+09
node_network_receive_bytes_total{device="en0"} 2.549214208e+09
node_network_receive_bytes_total{device="en0"} 2.550074368e+09
node_network_receive_bytes_total{device="en0"} 2.550938624e+09
node_network_receive_bytes_total{device="en0"} 2.551494656e+09
node_network_receive_bytes_total{device="en0"} 2.551535616e+09

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions