From 0b46918473e8e155314ad192ab6e26093a81fadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraci=20Paix=C3=A3o=20Kr=C3=B6hling?= Date: Tue, 29 Nov 2022 16:41:34 -0300 Subject: [PATCH] Fix examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juraci Paixão Kröhling --- receiver/purefareceiver/README.md | 17 ++--------------- receiver/purefareceiver/testdata/config.yaml | 18 ++++++++---------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/receiver/purefareceiver/README.md b/receiver/purefareceiver/README.md index ab96722421e2..fc62017cb344 100644 --- a/receiver/purefareceiver/README.md +++ b/receiver/purefareceiver/README.md @@ -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) diff --git a/receiver/purefareceiver/testdata/config.yaml b/receiver/purefareceiver/testdata/config.yaml index af27c78315a2..ca58c184b0cd 100644 --- a/receiver/purefareceiver/testdata/config.yaml +++ b/receiver/purefareceiver/testdata/config.yaml @@ -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