This Prometheus Exporter collects metrics from storage solutions which are built with the IBM Spectrum Virtualize software. Storage solutions built with the IBM Spectrum Virtualize software are the IBM FlashSystem V9000 system, the IBM SAN Volume Controller and the IBM Storwize Family
Flag | Description | Default Value |
---|---|---|
config.file | Path to configuration file | spectrumVirtualize.yml |
web.telemetry-path | Path under which to expose metrics | /metrics |
web.listen-address | Address on which to expose metrics and web interface | :9119 |
web.disable-exporter-metrics | Exclude metrics about the exporter itself (promhttp_, process_, go_*) | true |
--collector.name | Collector are enabled, the name means name of CLI Command | By default enabled collectors: lssystem and lssystemstats. |
--no-collector.name | Collectors that are enabled by default can be disabled, the name means name of CLI Command | By default disabled collectors: lsnodestats, lsmdisk, lsmdiskgrp, lsvdisk and lsvdiskcopy. |
-
Prerequisites:
- Go compiler
-
Building:
- binary
export GOPATH=your_gopath cd your_gopath git clone [email protected]:ZaaS/spectrum-virtualize-exporter.git cd spectrum-virtualize-exporter go build go install (Optional but recommended. This step will copy spectrum-virtualize-exporter binary package into $GOPATH/bin directory. It will be connvenient to copy the package to Monitoring docker image)
- docker image
docker build -t spectrum-virtualize-exporter .
- binary
-
Running:
-
Run Locally
./spectrum-virtualize-exporter --config.file=/etc/spectrumVirtualize/spectrumVirtualize.yml
-
Run as docker image
docker run -it -d -p 9119:9119 -v /etc/spectrumVirtualize/spectrumVirtualize.yml:/etc/spectrumVirtualize/spectrumVirtualize.yml --name spectrum-virtualize-exporter spectrum-virtualize-exporter --config.file=/etc/spectrumVirtualize/spectrumVirtualize.yml --log.level debug --restart always
-
The spectrum-virtualize-exporter reads from spectrumVirtualize.yml config file by default. Edit your config YAML file, Enter the IP address of the storage device, your username, and your password there.
targets:
- ipAddress: IP address
userid: user
password: password
CLI Command | Description | Default | Metrics | Total number of metrics |
---|---|---|---|---|
- | Metrics from the exporter itself. | Disabled | List | 35 |
lssystem | Get a detailed view of a clustered system (system). | Enabled | List | 57 |
lssystemstats | Get the most recent values of all node statistics in a system. | Enabled | List | 49 |
lsnodestats | Ge the most recent values of statistics for all nodes. | Disabled | List | 46 |
lsmdisk | Get a detailed view of managed disks (MDisks) visible to the clustered system. | Disabled | List | 1 |
lsmdiskgrp | Get a detailed view of storage pools that are visible to the clustered system. | Disabled | List | 16 |
lsvdisk | Get detailed view of volumes that are recognized by the system. | Disabled | List | 1 |
lsvdiskcopy | Get volume copy information. | Disabled | List | 1 |