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
Copy file name to clipboardExpand all lines: README.md
+29-9Lines changed: 29 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume
13
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
@@ -31,7 +31,7 @@ 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)
@@ -60,11 +60,25 @@ the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume
60
60
61
61
## Configuration
62
62
63
-
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.
64
-
Optionally, the "extra_labels" can be used to add customized labels for metrics.
65
-
Optionally, the "tls_server_config" can be used to expose metrics on https server with mTLS enabled. (Any of the "ca_cert", "server_cert" and "server_key" is not provided will start http srever without mTLS)
63
+
The spectrum-virtualize-exporter loads the [./spectrumVirtualize.yml](spectrumVirtualize.yml) config file by default.
66
64
67
-
```bash
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
68
82
targets:
69
83
- ipAddress: IP address
70
84
userid: user
@@ -78,8 +92,12 @@ tls_server_config:
78
92
server_key: ./certs/server.key
79
93
```
80
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
+
81
97
## Exported Metrics
82
98
99
+
* It recommended to scrape every 30 seconds.
100
+
83
101
| RESTful API | Description | Default | Metrics | Total number of metrics |
84
102
| --- | --- | --- | --- | --- |
85
103
| - | Metrics from the prometheus exporter itself. | Disabled | [List](docs/exporter_prometheus_metrics.md) | 30 |
@@ -92,7 +110,9 @@ tls_server_config:
92
110
| lsvdisk | Get detailed view of volumes that are recognized by the system. | Disabled | [List](docs/lsvdisk_metrics.md) | 1 |
0 commit comments