Node_exporter: flannel device can't be measured

Created on 18 Apr 2018  路  5Comments  路  Source: prometheus/node_exporter

Linux localhost92.localdomain 3.10.0-514.6.1.el7.x86_64 #1 SMP Thu Feb 16 19:50:09 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
error message:
ERRO[0008] ERROR: netdev collector failed after 0.005019s: couldn't get netstats: couldn't get interface name, invalid line in net/dev: "flannel.1: 18144009813 228499337 0 0 0 0 0 0 20758990068 258369223 0 64 0 0 0 0" source="collector.go:136"

$cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
vethe8d92f3: 648 8 0 0 0 0 0 0 47437284 816640 0 0 0 0 0 0
enp10s0f1: 542617520486 2079719912 0 157555 0 0 0 1614645 726369175183 2206621814 0 0 0 0 0 0
enp3s0f0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
enp4s0f0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
enp3s0f1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
enp13s0f0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
enp4s0f1: 7554 56 0 0 0 0 0 0 0 0 0 0 0 0 0 0
vethc488618: 5825 53 0 0 0 0 0 0 47567375 818424 0 0 0 0 0 0
vethe6b5bd2: 70437759 751311 0 0 0 0 0 0 96108533 676821 0 0 0 0 0 0
veth8a6a8b4: 648 8 0 0 0 0 0 0 36705660 632518 0 0 0 0 0 0
veth34e0ac8: 648 8 0 0 0 0 0 0 47634570 819469 0 0 0 0 0 0
vethc4de68d: 3067298120 27809170 0 0 0 0 0 0 5224252556 20169979 0 0 0 0 0 0
vethb950324: 648 8 0 0 0 0 0 0 47671528 820000 0 0 0 0 0 0
enp10s0f0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
vethdd511e2: 2221459406 30078407 0 0 0 0 0 0 5890028 138900 0 0 0 0 0 0
veth9745055: 22151703 307271 0 0 0 0 0 0 281412343 1102184 0 0 0 0 0 0
veth26e7892: 648 8 0 0 0 0 0 0 47660512 819862 0 0 0 0 0 0
veth6501773: 648 8 0 0 0 0 0 0 47164076 812718 0 0 0 0 0 0
vethf2159c9: 537217575 8080900 0 0 0 0 0 0 23573723056 16425988 0 0 0 0 0 0
veth11a686e: 648 8 0 0 0 0 0 0 47170608 812790 0 0 0 0 0 0
lo: 47576058882 142182886 0 0 0 0 0 0 47576058882 142182886 0 0 0 0 0 0
veth2470b12: 648 8 0 0 0 0 0 0 47664400 819912 0 0 0 0 0 0
veth3caa734: 648 8 0 0 0 0 0 0 47663752 819904 0 0 0 0 0 0
vethc325379: 475759140 4318428 0 0 0 0 0 0 654883105 7353448 0 0 0 0 0 0
vethfc32ff8: 648 8 0 0 0 0 0 0 47670232 819984 0 0 0 0 0 0
veth99fc3cd: 62533648 463274 0 0 0 0 0 0 155575538 733199 0 0 0 0 0 0
enp13s0f1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
veth8413653: 1295254919 13505126 0 0 0 0 0 0 1071685390 5813567 0 0 0 0 0 0
vethe59f46f: 242679 3517 0 0 0 0 0 0 58044693 824249 0 0 0 0 0 0
veth90dd3ec: 6415963 56295 0 0 0 0 0 0 76700162 79176 0 0 0 0 0 0
veth4673b6a: 648 8 0 0 0 0 0 0 47169196 812772 0 0 0 0 0 0
veth8827924: 648 8 0 0 0 0 0 0 47669584 819976 0 0 0 0 0 0
veth9bd8489: 455562533 4204720 0 0 0 0 0 0 656759976 7231765 0 0 0 0 0 0
enp9s0f0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
vetha204080: 648 8 0 0 0 0 0 0 47670880 819992 0 0 0 0 0 0
enp9s0f1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
veth8e62132: 648 8 0 0 0 0 0 0 237030 4101 0 0 0 0 0 0
flannel.1: 18144009813 228499337 0 0 0 0 0 0 20759064948 258370471 0 64 0 0 0 0
veth7f5cb6b: 427466228 4064478 0 0 0 0 0 0 611768775 6907966 0 0 0 0 0 0
docker0: 47397618249 589766329 0 0 0 0 0 0 80594150959 483070224 0 0 0 0 0 0

Most helpful comment

So, hilariously, any UTF-8 can be used as an interface name.

# ifconfig enp0s25 down
# ip link set enp0s25 name '馃挬0'
# ip addr show '馃挬0'
2: 馃挬0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 3c:97:0e:18:2d:a2 brd ff:ff:ff:ff:ff:ff
# grep '馃挬0' /proc/net/dev
 馃挬0: 57750104  105557    0    0    0     0          0        72 404570255  304261    0    0    0     0       0          0

All 5 comments

This looks like a similar issue to the interface alias bug. I wonder if there's a canonical list of valid characters for Linux interface names.

So, hilariously, any UTF-8 can be used as an interface name.

# ifconfig enp0s25 down
# ip link set enp0s25 name '馃挬0'
# ip addr show '馃挬0'
2: 馃挬0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 3c:97:0e:18:2d:a2 brd ff:ff:ff:ff:ff:ff
# grep '馃挬0' /proc/net/dev
 馃挬0: 57750104  105557    0    0    0     0          0        72 404570255  304261    0    0    0     0       0          0

Let's hope someone doesn't use a newline then.

thanks

Oh WOW :D

Was this page helpful?
0 / 5 - 0 ratings