Skip to content

Commit 789e843

Browse files
[k8s] Fix System Integration to utilise hostfs mounts (#6666) (#6811)
* [helm]: fix system integration to utilise hostfs mount * [kustomize]: fix system integration to utilise hostfs mount --------- Co-authored-by: Julien Lind <[email protected]> (cherry picked from commit 45b0cf4) Co-authored-by: Panos Koutsovasilis <[email protected]>
1 parent 2140820 commit 789e843

File tree

9 files changed

+73
-8
lines changed

9 files changed

+73
-8
lines changed

deploy/helm/elastic-agent/examples/system-custom-auth-paths/rendered/manifest.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ stringData:
9090
metricsets:
9191
- cpu
9292
period: 10s
93+
system.hostfs: /hostfs
9394
- data_stream:
9495
dataset: system.diskio
9596
type: metrics
9697
diskio.include_devices: null
9798
metricsets:
9899
- diskio
99100
period: 10s
101+
system.hostfs: /hostfs
100102
- data_stream:
101103
dataset: system.filesystem
102104
type: metrics
@@ -106,6 +108,7 @@ stringData:
106108
processors:
107109
- drop_event.when.regexp:
108110
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
111+
system.hostfs: /hostfs
109112
- data_stream:
110113
dataset: system.fsstat
111114
type: metrics
@@ -115,6 +118,7 @@ stringData:
115118
processors:
116119
- drop_event.when.regexp:
117120
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
121+
system.hostfs: /hostfs
118122
- condition: ${host.platform} != 'windows'
119123
data_stream:
120124
dataset: system.load
@@ -128,6 +132,7 @@ stringData:
128132
metricsets:
129133
- memory
130134
period: 10s
135+
system.hostfs: /hostfs
131136
- data_stream:
132137
dataset: system.network
133138
type: metrics
@@ -148,18 +153,21 @@ stringData:
148153
process.include_top_n.by_memory: 5
149154
processes:
150155
- .*
156+
system.hostfs: /hostfs
151157
- data_stream:
152158
dataset: system.process_summary
153159
type: metrics
154160
metricsets:
155161
- process_summary
156162
period: 10s
163+
system.hostfs: /hostfs
157164
- data_stream:
158165
dataset: system.socket_summary
159166
type: metrics
160167
metricsets:
161168
- socket_summary
162169
period: 10s
170+
system.hostfs: /hostfs
163171
- data_stream:
164172
dataset: system.uptime
165173
type: metrics
@@ -295,7 +303,7 @@ spec:
295303
labels:
296304
name: agent-pernode-example
297305
annotations:
298-
checksum/config: 535875b1a8f244fc529158f3467dec1983ca2ef19d365518da249fd46e22d0ef
306+
checksum/config: dc3e48e999091f8db08e8ce2c2de127239731b26d598b6399ad93ef3636a3245
299307
spec:
300308
automountServiceAccountToken: true
301309
containers:

deploy/helm/elastic-agent/templates/integrations/_system/_system_metrics.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@
2222
- normalized_percentages
2323
metricsets:
2424
- cpu
25+
system.hostfs: '/hostfs'
2526
- data_stream:
2627
dataset: system.diskio
2728
type: metrics
2829
period: 10s
2930
diskio.include_devices: null
3031
metricsets:
3132
- diskio
33+
system.hostfs: '/hostfs'
3234
- data_stream:
3335
dataset: system.filesystem
3436
type: metrics
3537
period: 1m
3638
metricsets:
3739
- filesystem
40+
system.hostfs: '/hostfs'
3841
processors:
3942
- drop_event.when.regexp:
4043
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -44,6 +47,7 @@
4447
period: 1m
4548
metricsets:
4649
- fsstat
50+
system.hostfs: '/hostfs'
4751
processors:
4852
- drop_event.when.regexp:
4953
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -60,6 +64,7 @@
6064
period: 10s
6165
metricsets:
6266
- memory
67+
system.hostfs: '/hostfs'
6368
- data_stream:
6469
dataset: system.network
6570
type: metrics
@@ -80,19 +85,22 @@
8085
process.include_cpu_ticks: false
8186
metricsets:
8287
- process
88+
system.hostfs: '/hostfs'
8389
process.include_cpu_ticks: false
8490
- data_stream:
8591
dataset: system.process_summary
8692
type: metrics
8793
period: 10s
8894
metricsets:
8995
- process_summary
96+
system.hostfs: '/hostfs'
9097
- data_stream:
9198
dataset: system.socket_summary
9299
type: metrics
93100
period: 10s
94101
metricsets:
95102
- socket_summary
103+
system.hostfs: '/hostfs'
96104
- data_stream:
97105
type: metrics
98106
dataset: system.uptime

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset-configmap.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -446,19 +446,22 @@ data:
446446
- normalized_percentages
447447
metricsets:
448448
- cpu
449+
system.hostfs: '/hostfs'
449450
- data_stream:
450451
dataset: system.diskio
451452
type: metrics
452453
period: 10s
453454
diskio.include_devices: null
454455
metricsets:
455456
- diskio
457+
system.hostfs: '/hostfs'
456458
- data_stream:
457459
dataset: system.filesystem
458460
type: metrics
459461
period: 1m
460462
metricsets:
461463
- filesystem
464+
system.hostfs: '/hostfs'
462465
processors:
463466
- drop_event.when.regexp:
464467
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -468,6 +471,7 @@ data:
468471
period: 1m
469472
metricsets:
470473
- fsstat
474+
system.hostfs: '/hostfs'
471475
processors:
472476
- drop_event.when.regexp:
473477
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -484,6 +488,7 @@ data:
484488
period: 10s
485489
metricsets:
486490
- memory
491+
system.hostfs: '/hostfs'
487492
- data_stream:
488493
dataset: system.network
489494
type: metrics
@@ -504,19 +509,21 @@ data:
504509
process.include_cpu_ticks: false
505510
metricsets:
506511
- process
507-
process.include_cpu_ticks: false
512+
system.hostfs: '/hostfs'
508513
- data_stream:
509514
dataset: system.process_summary
510515
type: metrics
511516
period: 10s
512517
metricsets:
513518
- process_summary
519+
system.hostfs: '/hostfs'
514520
- data_stream:
515521
dataset: system.socket_summary
516522
type: metrics
517523
period: 10s
518524
metricsets:
519525
- socket_summary
526+
system.hostfs: '/hostfs'
520527
- data_stream:
521528
type: metrics
522529
dataset: system.uptime

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-ksm-daemonset-configmap.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,22 @@ data:
211211
- normalized_percentages
212212
metricsets:
213213
- cpu
214+
system.hostfs: '/hostfs'
214215
- data_stream:
215216
dataset: system.diskio
216217
type: metrics
217218
period: 10s
218219
diskio.include_devices: null
219220
metricsets:
220221
- diskio
222+
system.hostfs: '/hostfs'
221223
- data_stream:
222224
dataset: system.filesystem
223225
type: metrics
224226
period: 1m
225227
metricsets:
226228
- filesystem
229+
system.hostfs: '/hostfs'
227230
processors:
228231
- drop_event.when.regexp:
229232
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -233,6 +236,7 @@ data:
233236
period: 1m
234237
metricsets:
235238
- fsstat
239+
system.hostfs: '/hostfs'
236240
processors:
237241
- drop_event.when.regexp:
238242
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -249,6 +253,7 @@ data:
249253
period: 10s
250254
metricsets:
251255
- memory
256+
system.hostfs: '/hostfs'
252257
- data_stream:
253258
dataset: system.network
254259
type: metrics
@@ -269,19 +274,21 @@ data:
269274
process.include_cpu_ticks: false
270275
metricsets:
271276
- process
272-
process.include_cpu_ticks: false
277+
system.hostfs: '/hostfs'
273278
- data_stream:
274279
dataset: system.process_summary
275280
type: metrics
276281
period: 10s
277282
metricsets:
278283
- process_summary
284+
system.hostfs: '/hostfs'
279285
- data_stream:
280286
dataset: system.socket_summary
281287
type: metrics
282288
period: 10s
283289
metricsets:
284290
- socket_summary
291+
system.hostfs: '/hostfs'
285292
- data_stream:
286293
type: metrics
287294
dataset: system.uptime

deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-ksm-daemonset-configmap.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,22 @@ data:
211211
- normalized_percentages
212212
metricsets:
213213
- cpu
214+
system.hostfs: '/hostfs'
214215
- data_stream:
215216
dataset: system.diskio
216217
type: metrics
217218
period: 10s
218219
diskio.include_devices: null
219220
metricsets:
220221
- diskio
222+
system.hostfs: '/hostfs'
221223
- data_stream:
222224
dataset: system.filesystem
223225
type: metrics
224226
period: 1m
225227
metricsets:
226228
- filesystem
229+
system.hostfs: '/hostfs'
227230
processors:
228231
- drop_event.when.regexp:
229232
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -233,6 +236,7 @@ data:
233236
period: 1m
234237
metricsets:
235238
- fsstat
239+
system.hostfs: '/hostfs'
236240
processors:
237241
- drop_event.when.regexp:
238242
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -249,6 +253,7 @@ data:
249253
period: 10s
250254
metricsets:
251255
- memory
256+
system.hostfs: '/hostfs'
252257
- data_stream:
253258
dataset: system.network
254259
type: metrics
@@ -269,19 +274,21 @@ data:
269274
process.include_cpu_ticks: false
270275
metricsets:
271276
- process
272-
process.include_cpu_ticks: false
277+
system.hostfs: '/hostfs'
273278
- data_stream:
274279
dataset: system.process_summary
275280
type: metrics
276281
period: 10s
277282
metricsets:
278283
- process_summary
284+
system.hostfs: '/hostfs'
279285
- data_stream:
280286
dataset: system.socket_summary
281287
type: metrics
282288
period: 10s
283289
metricsets:
284290
- socket_summary
291+
system.hostfs: '/hostfs'
285292
- data_stream:
286293
type: metrics
287294
dataset: system.uptime

deploy/kubernetes/elastic-agent-kustomize/ksm-hints/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -415,19 +415,22 @@ data:
415415
- normalized_percentages
416416
metricsets:
417417
- cpu
418+
system.hostfs: '/hostfs'
418419
- data_stream:
419420
dataset: system.diskio
420421
type: metrics
421422
period: 10s
422423
diskio.include_devices: null
423424
metricsets:
424425
- diskio
426+
system.hostfs: '/hostfs'
425427
- data_stream:
426428
dataset: system.filesystem
427429
type: metrics
428430
period: 1m
429431
metricsets:
430432
- filesystem
433+
system.hostfs: '/hostfs'
431434
processors:
432435
- drop_event.when.regexp:
433436
system.filesystem.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -437,6 +440,7 @@ data:
437440
period: 1m
438441
metricsets:
439442
- fsstat
443+
system.hostfs: '/hostfs'
440444
processors:
441445
- drop_event.when.regexp:
442446
system.fsstat.mount_point: ^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)
@@ -453,6 +457,7 @@ data:
453457
period: 10s
454458
metricsets:
455459
- memory
460+
system.hostfs: '/hostfs'
456461
- data_stream:
457462
dataset: system.network
458463
type: metrics
@@ -473,19 +478,21 @@ data:
473478
process.include_cpu_ticks: false
474479
metricsets:
475480
- process
476-
process.include_cpu_ticks: false
481+
system.hostfs: '/hostfs'
477482
- data_stream:
478483
dataset: system.process_summary
479484
type: metrics
480485
period: 10s
481486
metricsets:
482487
- process_summary
488+
system.hostfs: '/hostfs'
483489
- data_stream:
484490
dataset: system.socket_summary
485491
type: metrics
486492
period: 10s
487493
metricsets:
488494
- socket_summary
495+
system.hostfs: '/hostfs'
489496
- data_stream:
490497
type: metrics
491498
dataset: system.uptime

0 commit comments

Comments
 (0)