-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kube_scheduler config spec (#7614)
* Add kube_scheduler config spec * Update base requirement
- Loading branch information
Showing
5 changed files
with
496 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Kube_scheduler | ||
files: | ||
- name: kube-scheduler.yaml | ||
options: | ||
- template: init_config | ||
options: | ||
- template: init_config/openmetrics | ||
- template: instances | ||
options: | ||
- name: leader_election | ||
description: | | ||
Monitor the leader-election process on the kube-system:kube-scheduler endpoints. | ||
value: | ||
type: boolean | ||
example: true | ||
- template: instances/openmetrics | ||
overrides: | ||
prometheus_url.value.example: http://localhost:10251/metrics | ||
prometheus_url.display_priority: 1 | ||
|
||
- name: auto_conf.yaml | ||
options: | ||
- template: ad_identifiers | ||
overrides: | ||
value.example: | ||
- kube-scheduler | ||
- template: init_config | ||
options: [] | ||
- template: instances | ||
options: | ||
- name: prometheus_url | ||
required: true | ||
description: The URL where your application metrics are exposed by Prometheus. | ||
value: | ||
example: http://%%host%%:10251/metrics | ||
type: string | ||
- name: bearer_token_auth | ||
description: | | ||
Used if you are using RBACs and need the Agent to authenticate | ||
against the APIServer to retrieve metrics. Default to true. | ||
value: | ||
type: boolean | ||
example: true | ||
- name: bearer_token_path | ||
description: Used to specify the path where the service account token is located. | ||
value: | ||
type: string | ||
default: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
example: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
- name: ssl_verify | ||
description: Used to verify self signed certificates. | ||
value: | ||
type: boolean | ||
default: false | ||
example: false |
26 changes: 23 additions & 3 deletions
26
kube_scheduler/datadog_checks/kube_scheduler/data/auto_conf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
## @param ad_identifiers - list of strings - required | ||
## A list of container identifiers that are used by Autodiscovery to identify | ||
## which container the check should be run against. For more information, see: | ||
## https://docs.datadoghq.com/agent/guide/ad_identifiers/ | ||
# | ||
ad_identifiers: | ||
- kube-scheduler | ||
|
||
## All options defined here are available to all instances. | ||
# | ||
init_config: | ||
|
||
## Every instance is scheduled independent of the others. | ||
# | ||
instances: | ||
|
||
## @param prometheus_url - string - required | ||
## The URL where your application metrics are exposed by Prometheus. | ||
# | ||
- prometheus_url: "http://%%host%%:10251/metrics" | ||
- prometheus_url: http://%%host%%:10251/metrics | ||
|
||
## @param bearer_token_auth - string - optional | ||
## @param bearer_token_auth - boolean - optional - default: true | ||
## 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 | ||
# bearer_token_auth: true | ||
|
||
## @param bearer_token_path - string - optional - default: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
## Used to specify the path where the service account token is located. | ||
# | ||
# bearer_token_path: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
|
||
## @param ssl_verify - boolean - optional - default: false | ||
## Used to verify self signed certificates. | ||
# | ||
# ssl_verify: false |
Oops, something went wrong.