Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Nov 29, 2022
1 parent 24aba2e commit 0b46918
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
17 changes: 2 additions & 15 deletions receiver/purefareceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,18 @@ Example:
```yaml
extensions:
bearertokenauth/array01:
token: "some-token"
bearertokenauth/array02:
token: "some-other-token"
token: "..."

receivers:
purefa:
endpoint: http://172.0.0.0:9490/metrics/
endpoint: http://172.0.0.1:9490/metrics
arrays:
- address: gse-array01
auth:
authenticator: bearertokenauth/array01
- address: gse-array02
auth:
authenticator: bearertokenauth/array02
hosts:
- address: gse-array01
auth:
authenticator: bearertokenauth/array01
settings:
reload_intervals:
array: 10s
host: 1m
volume: 2m
pods: 15s
directories: 15s
```
The full list of settings exposed for this receiver are documented [here](./config.go)
Expand Down
18 changes: 8 additions & 10 deletions receiver/purefareceiver/testdata/config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
receivers:
purefa:
endpoint: https://172.0.0.0:9490/metrics/
endpoint: http://172.31.60.208:9490/metrics

purefa/with_custom_intervals:
endpoint: https://172.0.0.0:9490/metrics/
endpoint: http://172.31.60.208:9490/metrics
arrays:
- address: gse-array01
auth: bearertokenauth/array01
- address: gse-array02
auth: bearertokenauth/array02
- address: gse-array01
auth:
authenticator: bearertokenauth/array01
- address: gse-array02
auth:
authenticator: bearertokenauth/array02
settings:
reload_intervals:
array: 10s
host: 1m
volume: 2m
pods: 15s
directories: 15s

0 comments on commit 0b46918

Please sign in to comment.