-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
I'd like to see fiber channel host port statistics on linux exposed via node_exporter.
I have gathered the following stats from sysfs (via recursive grep) and grouped them into stats that I'd want to see in such a collector and optional ones:
# want to have
/sys/class/fc_host/host3/port_state:Online
/sys/class/fc_host/host3/statistics/dumped_frames:0x0
/sys/class/fc_host/host3/statistics/error_frames:0x0
/sys/class/fc_host/host3/statistics/invalid_crc_count:0x0
/sys/class/fc_host/host3/statistics/rx_frames:0x2180343
/sys/class/fc_host/host3/statistics/rx_words:0x38f935c7
/sys/class/fc_host/host3/statistics/tx_frames:0x1ac2c83
/sys/class/fc_host/host3/statistics/tx_words:0x101db3ea4
# like to have
/sys/class/fc_host/host3/speed:8 Gbit
/sys/class/fc_host/host3/statistics/seconds_since_last_reset:0x20f4fb
/sys/class/fc_host/host3/statistics/invalid_tx_word_count:0x0
/sys/class/fc_host/host3/statistics/link_failure_count:0x1
/sys/class/fc_host/host3/statistics/loss_of_sync_count:0x0
/sys/class/fc_host/host3/statistics/loss_of_signal_count:0x0
There are more statistics then the above, but I don't consider them very useful. I can supply a full output for some of my FC adapters if needed.
The kernel sadly lacks an exact documentation on the content of those files, but I have found them to exist on servers with both brocade and emulex FC adapters.
In this example host3 is the name of the FC port which I'd like to see used as label. There may be multiple such directories within /sys/class/fc_host which are usually named hostN.
Reactions are currently unavailable