Skip to content

Commit

Permalink
Fix auto-discovery for latest versions on Kubernetes (#9575)
Browse files Browse the repository at this point in the history
* [kube_controller_manager] Update `auto_conf.yaml` to provide a list of possible Prometheus URLs
  • Loading branch information
L3n41c committed Jul 1, 2021
1 parent 7e4e0a9 commit e3f1d9b
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e3f1d9b

Please sign in to comment.