-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathspec.yaml
More file actions
157 lines (153 loc) · 5.45 KB
/
Copy pathspec.yaml
File metadata and controls
157 lines (153 loc) · 5.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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.
value:
type: string
example: http://10.8.0.1:10255/metrics/cadvisor
fleet_configurable: false
- name: kubelet_metrics_endpoint
description: |
URL of the kubelet metrics prometheus endpoint
Pass an empty string to disable kubelet metrics collection.
value:
type: string
example: http://10.8.0.1:10255/metrics
fleet_configurable: false
- name: probes_metrics_endpoint
description: |
URL of the probe metrics prometheus endpoint
Pass an empty string to disable probe metrics collection.
value:
type: string
example: http://10.8.0.1:10255/metrics/probes
fleet_configurable: false
- 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.
value:
type: integer
example: 4194
fleet_configurable: false
- name: enabled_rates
description: |
Allow list of rate type metrics to collect from cadvisor.
value:
type: array
items:
type: string
example:
- cpu.*
- network.*
fleet_configurable: false
- name: enabled_gauges
description: |
Allow list of gauge type metrics to collect from cadvisor.
value:
type: array
items:
type: string
example:
- filesystem.*
fleet_configurable: false
- template: instances/openmetrics_legacy
overrides:
prometheus_url.required: false
prometheus_url.hidden: true
prometheus_metrics_prefix.hidden: true
min_collection_interval.value.example: 20
min_collection_interval.enabled: true
- name: default.yaml
# Note that this uses `conf.yaml.default` instead of `auto_conf.yaml`.
# The `conf.yaml.default` has an `ad_identifiers` which make it a configuration template.
# This means that this goes through normal Autodiscovery process, and will only be
# scheduled when an Autodiscovery listener produces a matching `ad_identifier`.
example_name: conf.yaml.default
options:
- template: ad_identifiers
overrides:
value.example:
- _kubelet
- 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.
value:
type: string
example: http://10.8.0.1:10255/metrics/cadvisor
fleet_configurable: false
- name: kubelet_metrics_endpoint
description: |
URL of the kubelet metrics prometheus endpoint
Pass an empty string to disable kubelet metrics collection.
value:
type: string
example: http://10.8.0.1:10255/metrics
fleet_configurable: false
- name: probes_metrics_endpoint
description: |
URL of the probe metrics prometheus endpoint
Pass an empty string to disable probe metrics collection.
value:
type: string
example: http://10.8.0.1:10255/metrics/probes
fleet_configurable: false
- 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.
value:
type: integer
example: 4194
fleet_configurable: false
- name: enabled_rates
description: |
Allow list of rate type metrics to collect from cadvisor.
value:
type: array
items:
type: string
example:
- cpu.*
- network.*
fleet_configurable: false
- name: enabled_gauges
description: |
Allow list of gauge type metrics to collect from cadvisor.
value:
type: array
items:
type: string
example:
- filesystem.*
fleet_configurable: false
- template: instances/openmetrics_legacy
overrides:
prometheus_url.required: false
prometheus_url.hidden: true
prometheus_metrics_prefix.hidden: true
min_collection_interval.value.example: 20
min_collection_interval.enabled: true