From 9d073ad735613d8ef2384445ddfba11f0ee727db Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 24 Aug 2024 17:27:48 +0200 Subject: netif: export node_network_mtu_bytes --- netif.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'netif.c') diff --git a/netif.c b/netif.c index c732acc..0434520 100644 --- a/netif.c +++ b/netif.c @@ -33,6 +33,9 @@ static void netif_collect_dir(scrape_req *req, char *dir) { LABEL_END, }; + if (read_file_at(dirfd, "mtu", buf, sizeof buf) > 0) + scrape_write(req, "node_network_mtu_bytes", dev_label, atof(buf)); + if (read_file_at(dirfd, "carrier", buf, sizeof buf) > 0) { scrape_write(req, "node_network_carrier", dev_label, atof(buf)); -- cgit 1.4.1