Skip to content

Commit

Permalink
[kubelet/kubernetes_state] add spec.yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
celenechang committed Feb 16, 2022
1 parent 7c3e92d commit b5e213d
Show file tree
Hide file tree
Showing 7 changed files with 1,140 additions and 84 deletions.
52 changes: 52 additions & 0 deletions kubelet/assets/configuration/spec.yaml
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
Loading

0 comments on commit b5e213d

Please sign in to comment.