Prometheus exporter for IBM Spectrum Virtualize (e.g. Storwize V7000).
spectrum_power_wattsspectrum_temperaturespectrum_drive_statusspectrum_psu_statusspectrum_pool_capacity_bytesspectrum_pool_free_bytesspectrum_pool_statusspectrum_pool_used_bytesspectrum_pool_volume_countspectrum_pool_virtual_bytesspectrum_pool_used_before_reduction_bytesspectrum_pool_used_after_reduction_bytesspectrum_pool_reclaimable_bytesspectrum_node_compression_usage_ratiospectrum_node_fc_bpsspectrum_node_fc_iopsspectrum_node_iscsi_bpsspectrum_node_iscsi_iopsspectrum_node_sas_bpsspectrum_node_sas_iopsspectrum_node_system_usage_ratiospectrum_node_total_cache_usage_ratiospectrum_node_write_cache_usage_ratiospectrum_system_iops{layer,op}spectrum_system_bytes_per_second{layer,op}spectrum_system_latency_seconds{layer,op}spectrum_fc_port_speed_bpsspectrum_fc_port_statusspectrum_ip_port_link_activespectrum_ip_port_speed_bpsspectrum_ip_port_state
Every commit on master is released under the next semver version:
- Container image (linux/amd64, linux/arm64):
ghcr.io/bluecmd/spectrum_virtualize_exporter:<version>, also tagged<major>.<minor>,<major>andlatest. - Static binaries for linux/amd64 and linux/arm64 on the releases page.
The image takes the flags as arguments, for example
docker run ghcr.io/bluecmd/spectrum_virtualize_exporter:1 -auth-file /etc/spectrum/auth.yaml.
Commits bump the patch version. Put #minor or #major in the commit
message (or the PR title or description, for a squash merge) to bump those
instead.
Example:
./spectrum_virtualize_exporter \
-auth-file ~/spectrum-monitor.yaml \
-extra-ca-cert ~/namecheap.ca.crt
Where ~/spectrum-monitor.yaml contains pairs of Spectrum targets
and login information in the following format:
"https://my-v7000:7443":
user: monitor
password: passw0rd
"https://my-other-v7000:7443":
user: monitor2
password: passw0rd1
The flag -extra-ca-cert is useful as it appears that at least V7000 on the
8.2 version is unable to attach an intermediate CA.
spectrum_system_* come from lssystemstats: layer is vdisk (I/O from
hosts to volumes), mdisk (from the pools to their managed disks) or drive
(to the physical drives), op is read or write. They are the system's
latest 5 s sample, so throughput has a resolution of 1 MiB/s and latency
of 1 ms.
The REST server has been seen to stop answering after a while (V7000 at 8.4)
while the CLI over SSH keeps working. Use an ssh:// target to run the same
queries as lsfoo -delim , over SSH instead:
"ssh://my-v7000":
user: monitor
keyfile: /etc/spectrum/id_rsa # and/or password
./spectrum_virtualize_exporter \
-auth-file ~/spectrum-monitor.yaml \
-known-hosts ~/spectrum-known-hosts
-known-hosts is an OpenSSH known_hosts file for the targets (for example
from ssh-keyscan my-v7000); -insecure skips host key checking instead.
The connection is kept open between scrapes and redialled when it breaks.
Only ls* list commands are ever sent. A Monitor role user is enough.
Please file an issue describing what metrics you'd like to see. Include as much details as possible please, e.g. how the perfect Prometheus metric would look for your use-case.