about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--netif.c3
1 files changed, 3 insertions, 0 deletions
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));