From 0e53c3c2700606007672b52091e49007d98532fa Mon Sep 17 00:00:00 2001 From: Daz Wilkin Date: Thu, 22 Dec 2022 22:04:15 -0800 Subject: [PATCH] Add root (`modules`) key to CONFIGURATION.md (#1009) * Add root (`modules`) key to CONFIGURATION.md The Exporter configuration is complicated by the omission of the root (`modules`) key from the configuration document. Not only must configuration begin with `modules` but each module is a map of module names to module values. I think I've correctly reflected this here using the document's schema. Signed-off-by: Daz Wilkin * link to example.yml Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com> Signed-off-by: Daz Wilkin Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com> Co-authored-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com> --- CONFIGURATION.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 5c9eaa4..a3347c3 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -16,7 +16,17 @@ Generic placeholders are defined as follows: The other placeholders are specified separately. -### Module +See [example.yml](example.yml) for configuration examples. + +```yml + +modules: + [ : ... ] + +``` + + +### `` ```yml # The protocol over which the probe will take place (http, tcp, dns, icmp, grpc). @@ -34,7 +44,7 @@ The other placeholders are specified separately. ``` -### +### `` ```yml # Accepted status codes for this probe. Defaults to 2xx. @@ -136,7 +146,7 @@ The other placeholders are specified separately. ``` -#### +#### `` ```yml header: , @@ -144,7 +154,7 @@ regexp: , [ allow_missing: | default = false ] ``` -### +### `` ```yml @@ -173,7 +183,7 @@ tls_config: ``` -### +### `` ```yml @@ -249,7 +259,7 @@ validate_additional_rrs: ``` -### +### `` ```yml @@ -274,7 +284,7 @@ validate_additional_rrs: ``` -### +### `` ```yml # The service name to query for health status. @@ -292,7 +302,7 @@ tls_config: [ ] ``` -### +### `` ```yml @@ -318,7 +328,7 @@ tls_config: [ min_version: ] ``` -#### +#### `` OAuth 2.0 authentication using the client credentials grant type. Blackbox exporter fetches an access token from the specified endpoint with the given -- 2.25.1