From: Daz Wilkin Date: Fri, 23 Dec 2022 06:04:15 +0000 (-0800) Subject: Add root (`modules`) key to CONFIGURATION.md (#1009) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0e53c3c2700606007672b52091e49007d98532fa;p=blackbox_exporter.git 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> --- 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