Monitor Linux iscsi target (LIO/Target Core Mod)

Are there any plugins/collectors that can gather iSCSI data from iSCSI tagets created with targetcli?

The kernel provides configuration and statistics in configfs /sys/kernel/config/target/

For example:# grep . /sys/kernel/config/target/core/fileio_0/*/statistics/scsi_*/*

/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_dev/indx:11
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_dev/inst:12
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_dev/ports:1
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_dev/role:Target
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/creation_time:1375002156
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/dev:11
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/dev_type:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/full_stat:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/hs_num_cmds:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/indx:1
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/inst:12
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/lu_name:d28ec22e-f29e-4c96-9019-0204730c538b
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/lun:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/num_cmds:172405
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/prod:media_1
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/read_mbytes:2641
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/resets:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/rev:4.0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/state_bit:exposed
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/status:available
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/vend:LIO-ORG
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_lu/write_mbytes:35545
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/aborts_complete:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/aborts_no_task:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/indx:11
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/inst:12
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/non_access_lus:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/num_lus:1
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/resets:0
/sys/kernel/config/target/core/fileio_0/media_1/statistics/scsi_tgt_dev/status:activated

Hi, @Forza, welcome to the Netdata community :wave:

There is no such collector, unfortunately. If you are interested in this feature consider opening a feature request.

1 Like