From e3f1d9b2cfaac7202ffa2cca62eca1844fe04b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9na=C3=AFc=20Huard?= Date: Thu, 1 Jul 2021 09:53:37 +0200 Subject: [PATCH] Fix auto-discovery for latest versions on Kubernetes (#9575) * [kube_controller_manager] Update `auto_conf.yaml` to provide a list of possible Prometheus URLs --- .../data/auto_conf.yaml | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/kube_controller_manager/datadog_checks/kube_controller_manager/data/auto_conf.yaml b/kube_controller_manager/datadog_checks/kube_controller_manager/data/auto_conf.yaml index 04bb84d4f2420..ba924b46dbe66 100644 --- a/kube_controller_manager/datadog_checks/kube_controller_manager/data/auto_conf.yaml +++ b/kube_controller_manager/datadog_checks/kube_controller_manager/data/auto_conf.yaml @@ -4,13 +4,30 @@ ad_identifiers: init_config: instances: - ## @param prometheus_url - string - required + ## @param possible_prometheus_urls - list(string) - optional + ## The URLs to try to get your application metrics that are exposed by Prometheus. + ## The check will try each URLs in the list and will use the first working one. + ## One of possible_prometheus_urls or prometheus_url parameter is required. + # + - possible_prometheus_urls: + - https://%%host%%:10257/metrics + - https://localhost:10257/metrics + - http://%%host%%:10252/metrics + - http://localhost:10252/metrics + + ## @param prometheus_url - string - optional ## The URL where your application metrics are exposed by Prometheus. + ## One of possible_prometheus_urls or prometheus_url parameter is required. # - - prometheus_url: "http://%%host%%:10252/metrics" + # prometheus_url: http://%%host%%:10252/metrics ## @param bearer_token_auth - string - optional ## Used if you are using RBACs and need the Agent to authenticate ## against the APIServer to retrieve metrics. Default to true. # bearer_token_auth: true + + ## @param ssl_verify - boolean - optional - default: true + ## Used to verify self signed certificates. + # + ssl_verify: false