Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example config #11515

Merged
merged 2 commits into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions kubelet/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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
- 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
- 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
- name: enabled_rates
description: |
Allow list of rate type metrics to collect from cadvisor.
example:
- cpu.*
- network.*
- name: enabled_gauges
description: |
Allow list of gauge type metrics to collect from cadvisor.
example:
- filesystem.*
- template: instances/openmetrics_legacy
overrides:
prometheus_url.required: false
prometheus_url.hidden: true
celenechang marked this conversation as resolved.
Show resolved Hide resolved
prometheus_metrics_prefix.hidden: true
min_collection_interval.value.example: 20
min_collection_interval.enabled: true
Loading