-
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.
[kubelet/kubernetes_state] add spec.yaml files
- Loading branch information
1 parent
7c3e92d
commit b5e213d
Showing
7 changed files
with
1,140 additions
and
84 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,52 @@ | ||
name: Kubelet | ||
files: | ||
- name: kubelet.yaml | ||
options: | ||
- template: init_config | ||
options: | ||
- template: init_config/openmetrics_legacy | ||
- template: instances | ||
options: | ||
- name: cadvisor_metrics_endpoint | ||
description: | | ||
1.7.6+ clusters expose container metrics in the prometheus format. | ||
This is the default setting. See next section for legacy clusters. | ||
URL of the cadvisor metrics prometheus endpoint. | ||
Pass an empty string, or set the cadvisor_port option to disable cadvisor metrics collection. | ||
example: http://10.8.0.1:10255/metrics/cadvisor | ||
display_priority: 1 | ||
- name: kubelet_metrics_endpoint | ||
description: | | ||
URL of the kubelet metrics prometheus endpoint | ||
Pass an empty string to disable kubelet metrics collection. | ||
example: http://10.8.0.1:10255/metrics | ||
display_priority: 1 | ||
- name: cadvisor_port | ||
description: | | ||
Metric collection for legacy (< 1.7.6) clusters via the kubelet's cadvisor port. | ||
This port is closed by default on k8s 1.7+ and OpenShift, enable it | ||
via the `--cadvisor-port=4194` kubelet option. | ||
Port to connect to, uncomment and set accordingly to enable collection. | ||
example: 4194 | ||
display_priority: 1 | ||
- name: enabled_rates | ||
description: | | ||
Allow list of rate type metrics to collect from cadvisor. | ||
example: | ||
- cpu.* | ||
- network.* | ||
display_priority: 1 | ||
- name: enabled_gauges | ||
description: | | ||
Allow list of gauge type metrics to collect from cadvisor. | ||
example: | ||
- filesystem.* | ||
display_priority: 1 | ||
- template: instances/openmetrics_legacy | ||
overrides: | ||
prometheus_url.hidden: true | ||
prometheus_metrics_prefix.hidden: true | ||
min_collection_interval.value.example: 20 | ||
min_collection_interval.enabled: true |
Oops, something went wrong.