diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt index 85ca0f9f2981f..9b14c6dbd7086 100644 --- a/.github/actions/spelling/allow.txt +++ b/.github/actions/spelling/allow.txt @@ -355,6 +355,7 @@ netcat netdata Netflix netlify +netlink Neue neuronull Nextbook diff --git a/changelog.d/22487_tcp_netlink_parsing.fix.md b/changelog.d/22487_tcp_netlink_parsing.fix.md new file mode 100644 index 0000000000000..f98c5861f95f8 --- /dev/null +++ b/changelog.d/22487_tcp_netlink_parsing.fix.md @@ -0,0 +1,3 @@ +Fixed a `host_metrics` source issue that caused tcp metrics collection to fail with "Could not parse netlink response: invalid netlink buffer" errors on Linux systems. + +authors: mushrowan diff --git a/src/sources/host_metrics/tcp.rs b/src/sources/host_metrics/tcp.rs index c800b5975d081..a544a3451fc7a 100644 --- a/src/sources/host_metrics/tcp.rs +++ b/src/sources/host_metrics/tcp.rs @@ -241,10 +241,12 @@ async fn fetch_netlink_inet_headers(addr_family: u8) -> Result