Update README
This commit is contained in:
parent
541deac29e
commit
896f84f57b
1 changed files with 15 additions and 6 deletions
11
README.md
11
README.md
|
@ -13,6 +13,15 @@ $ go build
|
||||||
$ ./mystrom-exporter [flags]
|
$ ./mystrom-exporter [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Build instructions
|
||||||
|
The package uses `stringer` to generate `String()` methods on structs, to build the package you need to install `stringer` through `gotools`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ go install golang.org/x/tools/cmd/stringer@latest
|
||||||
|
# optional, should also be triggered by go build
|
||||||
|
$ go generate ./...
|
||||||
|
```
|
||||||
|
|
||||||
## Exported Metrics
|
## Exported Metrics
|
||||||
| Metric | Description |
|
| Metric | Description |
|
||||||
| ------ | ------- |
|
| ------ | ------- |
|
||||||
|
@ -30,7 +39,7 @@ $ ./mystrom-exporter --help
|
||||||
| ---- | ----------- | ------- |
|
| ---- | ----------- | ------- |
|
||||||
| web.listen-address | Address to listen on | `:9452` |
|
| web.listen-address | Address to listen on | `:9452` |
|
||||||
| web.metrics-path | Path under which to expose exporters own metrics | `/metrics` |
|
| web.metrics-path | Path under which to expose exporters own metrics | `/metrics` |
|
||||||
| web.device-path | Path under which the metrics of the devices are fetched | `/device` |
|
| web.device-path | Path under which the metrics of the devices are fetched, requires `target` parameter | `/device` |
|
||||||
|
|
||||||
## Prometheus configuration
|
## Prometheus configuration
|
||||||
A enhancement has been made to have only one exporter which can scrape multiple devices. This is configured in
|
A enhancement has been made to have only one exporter which can scrape multiple devices. This is configured in
|
||||||
|
|
Loading…
Reference in a new issue