ExportXMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1026
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • N&O 2026-11-09
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      First half of SERVER-135005, split out to keep the PRs small.

      This adds the seven mongodb.system.network.tcp.* counters (retransmitted segments, fast retransmits, retransmit timeouts, lost retransmits, SACK recoveries, delayed ACK lost, listen overflows) plus the bit of logic that takes a snapshot of the kernel's values and bumps each counter by however much it grew since the last snapshot. If a kernel value ever goes backwards we just rebase on it, so the counters never go down.

      It lives in a new system_network_metrics library under src/mongo/otel/metrics/instrumentation/, next to the other system samplers. The counters are also registered for serverStatus under metrics.system.network.tcp.

      There's no behavior change in this ticket; the library is only linked into its unit test. SERVER-135005 adds the /proc/net reading, the 1 Hz job, and the jstest on top.

      Testing: system_network_metrics_test covers the first update, a later update, and a counter reset.

            Assignee:
            Asher Garvens
            Reporter:
            Asher Garvens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: