From 332997089b48a5ce5782a288c1747dc857a5829e Mon Sep 17 00:00:00 2001 From: Jovan Kostovski Date: Mon, 6 Mar 2023 12:25:04 +0100 Subject: [PATCH] docs: Add optional tls parameters to the documentation (#12788) --- plugins/inputs/prometheus/README.md | 11 +++++++++++ plugins/inputs/prometheus/sample.conf | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/plugins/inputs/prometheus/README.md b/plugins/inputs/prometheus/README.md index 17c4ab62b..e8c89b635 100644 --- a/plugins/inputs/prometheus/README.md +++ b/plugins/inputs/prometheus/README.md @@ -142,6 +142,17 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ## Use TLS but skip chain & host verification # insecure_skip_verify = false + + ## Use the given name as the SNI server name on each URL + # tls_server_name = "" + + ## TLS renegotiation method, choose from "never", "once", "freely" + # tls_renegotiation_method = "never" + + ## Enable/disable TLS + ## Set to true/false to enforce TLS being enabled/disabled. If not set, + ## enable TLS only if any of the other options are specified. + # tls_enable = ``` `urls` can contain a unix socket as well. If a different path is required diff --git a/plugins/inputs/prometheus/sample.conf b/plugins/inputs/prometheus/sample.conf index b133219fe..c74370754 100644 --- a/plugins/inputs/prometheus/sample.conf +++ b/plugins/inputs/prometheus/sample.conf @@ -125,3 +125,14 @@ ## Use TLS but skip chain & host verification # insecure_skip_verify = false + + ## Use the given name as the SNI server name on each URL + # tls_server_name = "myhost.example.org" + + ## TLS renegotiation method, choose from "never", "once", "freely" + # tls_renegotiation_method = "never" + + ## Enable/disable TLS + ## Set to true/false to enforce TLS being enabled/disabled. If not set, + ## enable TLS only if any of the other options are specified. + # tls_enable = true