You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume-controller) and
9
-
the [IBM Storwize Family](https://www.ibm.com/it-infrastructure/storage/storwize<Paste>)
9
+
the [IBM Storwize Family](https://www.ibm.com/it-infrastructure/storage/storwize\<Paste>)
10
10
11
11
## Usage
12
12
13
-
| Flag | Description | Default Value |
13
+
| Flag | Description | Default Value |
14
14
| --- | --- | --- |
15
15
| config.file | Path to configuration file | spectrumVirtualize.yml |
16
-
| web.telemetry-path | Path under which to expose metrics | /metrics |
16
+
| web.metrics-context | Context under which to expose metrics | /metrics |
17
+
| web.settings-context | Context under which to expose setting metrics | /settings |
17
18
| web.listen-address | Address on which to expose metrics and web interface | :9119 |
18
19
| web.disable-exporter-metrics | Exclude metrics about the exporter itself (promhttp_*, process_*, go_*) | true |
19
-
| --collector.name | Collector are enabled, the name means name of CLI Command | By default enabled collectors: lssystem and lssystemstats. |
20
-
| --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. |
20
+
| --collector.[name]| Enable or disable collector. The [name] is in the list "`lsmdisk`, `lsmdiskgrp`, `lsnodestats`, `lssystem`, `lssystemstats`, `lsvdisk`, `lsvdiskcopy`, `lscloudcallhome`, `lsdrive`, `lsenclosure`, `lsenclosurebattery`, `lsenclosurecanister`, `lsenclosurepsu`, `lshost`, `ip`, `lsmdisk_s`, `lsmdiskgrp_s`, `lsnodecanister`, `lsportfc`" |[true\|false]. <br> By default enabled collectors: `lssystem`, `lssystemstats`, `lscloudcallhome`, `lsdrive`, `lsenclosure`, `lsenclosurebattery`, `lsenclosurecanister`, `lsenclosurepsu`, `lshost`, `ip`, `lsmdisk_s`, `lsmdiskgrp_s`, `lsnodecanister`, `lsportfc`. |
21
21
22
22
## Building and running
23
23
@@ -27,47 +27,81 @@ the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume
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)
The spectrum-virtualize-exporter reads from [spectrumVirtualize.yml](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.
59
-
```
63
+
The spectrum-virtualize-exporter loads the [./spectrumVirtualize.yml](spectrumVirtualize.yml) config file by default.
64
+
65
+
### Required settings
66
+
67
+
*`targets.[].ipAddress`: IP address of the storage device.
68
+
*`targets.[].userid`: Username to access the storage device.
69
+
*`targets.[].password`: User password to access the storage device.
70
+
71
+
### Optionally settings
72
+
73
+
*`extra_labels.[].name`: Customized label name adding to metrics.
74
+
*`extra_labels.[].value`: Value of the customized label.
75
+
*`tls_server_config.ca_cert`: The CA certificate chain file in pem format for verifying client certificate.
76
+
*`tls_server_config.server_cert`: The server's certificate chain file in pem format.
77
+
* `tls_server_config.server_key`: The server's private key file.
78
+
79
+
### Config File Sample
80
+
81
+
```yaml
60
82
targets:
61
83
- ipAddress: IP address
62
84
userid: user
63
85
password: password
86
+
extra_labels:
87
+
- name: pod_name
88
+
value: pod_value
89
+
tls_server_config:
90
+
ca_cert: ./certs/ca-root.crt
91
+
server_cert: ./certs/server.crt
92
+
server_key: ./certs/server.key
64
93
```
65
94
95
+
**If any of the "ca_cert", "server_cert" or "server_key" are not provided, the exporter http server will start without https(mTLS) enabled.**
96
+
66
97
## Exported Metrics
67
98
68
-
| CLI Command | Description | Default | Metrics | Total number of metrics |
99
+
* It recommended to scrape every 30 seconds.
100
+
101
+
| RESTful API | Description | Default | Metrics | Total number of metrics |
69
102
| --- | --- | --- | --- | --- |
70
-
| - | Metrics from the exporter itself. | Disabled | [List](docs/exporter_metrics.md) | 35 |
103
+
| - | Metrics from the prometheus exporter itself. | Disabled | [List](docs/exporter_prometheus_metrics.md) | 30 |
104
+
| - | Metrics from the spectrum exporter itself. | Enabled | [List](docs/exporter_spectrum_metrics.md) | 4 |
71
105
| lssystem | Get a detailed view of a clustered system (system). | Enabled | [List](docs/lssystem_metrics.md) | 57 |
72
106
| lssystemstats | Get the most recent values of all node statistics in a system. | Enabled | [List](docs/lssystemstats_metrics.md) | 49 |
73
107
| lsnodestats | Ge the most recent values of statistics for all nodes. | Disabled | [List](docs/lsnodestats_metrics.md)| 46 |
@@ -76,6 +110,27 @@ targets:
76
110
| lsvdisk | Get detailed view of volumes that are recognized by the system. | Disabled | [List](docs/lsvdisk_metrics.md) | 1 |
| RESTful API | Description | Default | Metrics | Total number of metrics |
118
+
| --- | --- | --- | --- | --- |
119
+
| - | Metrics from the prometheus exporter itself. | Disabled | [List](docs/exporter_prometheus_metrics.md) | 30 |
120
+
| - | Metrics from the spectrum exporter itself. | Enabled | [List](docs/exporter_spectrum_metrics.md) | 4 |
121
+
| lscloudcallhome | The status of the Call Home information. | Enabled | [List](docs/lscloudcallhome_settings.md) | 1 |
122
+
| lsenclosure | The summary of the enclosures including canister and PSU. | Enabled | [List](docs/lsenclosure_settings.md) | 1 |
123
+
| lsenclosurebattery | The information about the batteries. | Enabled | [List](docs/lsenclosurebattery_settings.md) | 2 |
124
+
| lsenclosurecanister | The detailed status of each canister in enclosures. | Enabled | [List](docs/lsenclosurecanister_settings.md) | 1 |
125
+
| lsenclosurepsu | The information about each power-supply unit (PSU) in enclosures. | Enabled | [List](docs/lsenclosurepsu_settings.md) | 1 |
126
+
| lsdrive | The configuration information and drive vital product data (VPD). | Enabled | [List](docs/lsdrive_settings.md) | 3 |
127
+
| lshost | The concise information about all the hosts visible to the system. | Enabled | [List](docs/lshost_settings.md) | 1 |
128
+
| lsnodecanister | The node canisters that are part of the system. | Enabled | [List](docs/lsnodecanister_settings.md) | 1 |
129
+
| lsportfc | The status and properties of the Fibre Channel (FC) input/output (I/O) ports for the clustered system. | Enabled | [List](docs/lsportfc_settings.md) | 1 |
130
+
| lsmdisk | The info of managed disks (MDisks) visible to the system. | Enabled | [List](docs/lsmdisk_settings.md) | 1 |
131
+
| lsmdiskgrp | The info of storage pools that are visible to the system. | Enabled | [List](docs/lsmdiskgrp_settings.md) | 1 |
132
+
| - | The connection status of system IPs(PSYS, SSYS, SVC1, SVC2). | Enabled | [List](docs/lsenclosurebattery_settings.md) | 1 |
133
+
79
134
## References
80
135
81
136
* [IBM Spectrum Virtualize RESTful API For FS9xxx](https://www.ibm.com/support/knowledgecenter/en/STSLR9_8.2.0/com.ibm.fs9100_820.doc/rest_api_overview.html)
0 commit comments