Skip to content

Commit

Permalink
Add kube_scheduler config spec (#7614)
Browse files Browse the repository at this point in the history
* Add kube_scheduler config spec

* Update base requirement
  • Loading branch information
mgarabed authored Sep 18, 2020
1 parent 1436bdc commit a557d27
Show file tree
Hide file tree
Showing 5 changed files with 496 additions and 13 deletions.
55 changes: 55 additions & 0 deletions kube_scheduler/assets/configuration/spec.yaml
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 kube_scheduler/datadog_checks/kube_scheduler/data/auto_conf.yaml
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
Loading

0 comments on commit a557d27

Please sign in to comment.