The prometheus-iscsi-exporter snap exposes high level ISCSI metrics to Prometheus.
Metrics
Metrics are scrapped from the snap's $SNAP_DATA directory (/var/snap/prometheus-iscsi-exporter/current).
Multipath command output should be written to $SNAP_DATA/multipath.
Multipath Device Total
The total number of devices setup to use multipath. This is a gauge metric, and it is exported with the name
iscsi_multipath_device_total.
Multipath Number of Paths
The number of paths per device. This is a gauge metric, and it is exported with the name iscsi_multipath_path_total.
Each metric is labeled with the device's alias and wwid.
Enable snaps on Debian and install prometheus-iscsi-exporter
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
Install prometheus-iscsi-exporter
To install prometheus-iscsi-exporter, simply use the following command: