Skip to content

Commit 77e4750

Browse files
Update README
Signed-off-by: Mu Chen <[email protected]>
1 parent d293be1 commit 77e4750

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume
1313
| Flag | Description | Default Value |
1414
| --- | --- | --- |
1515
| 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 |
1718
| web.listen-address | Address on which to expose metrics and web interface | :9119 |
1819
| 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`. |
2121

2222
## Building and running
2323

@@ -31,7 +31,7 @@ the [IBM SAN Volume Controller](https://www.ibm.com/us-en/marketplace/san-volume
3131
```bash
3232
export GOPATH=your_gopath
3333
cd your_gopath
34-
git clone git@github.ibm.com:ZaaS/spectrum-virtualize-exporter.git
34+
git clone https://github.com/IBM/spectrum-virtualize-exporter.git
3535
cd spectrum-virtualize-exporter
3636
make binary
3737
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
6060

6161
## Configuration
6262

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.
6664

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
6882
targets:
6983
- ipAddress: IP address
7084
userid: user
@@ -78,8 +92,12 @@ tls_server_config:
7892
server_key: ./certs/server.key
7993
```
8094

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+
8197
## Exported Metrics
8298

99+
* It recommended to scrape every 30 seconds.
100+
83101
| RESTful API | Description | Default | Metrics | Total number of metrics |
84102
| --- | --- | --- | --- | --- |
85103
| - | Metrics from the prometheus exporter itself. | Disabled | [List](docs/exporter_prometheus_metrics.md) | 30 |
@@ -92,7 +110,9 @@ tls_server_config:
92110
| lsvdisk | Get detailed view of volumes that are recognized by the system. | Disabled | [List](docs/lsvdisk_metrics.md) | 1 |
93111
| lsvdiskcopy | Get volume copy information. | Disabled | [List](docs/lsvdiskcopy_metrics.md) | 1 |
94112

95-
## Exported Settings
113+
## Exported Setting Metrics
114+
115+
* It recommended to scrape every >15 minutes.
96116

97117
| RESTful API | Description | Default | Metrics | Total number of metrics |
98118
| --- | --- | --- | --- | --- |

0 commit comments

Comments
 (0)