Skip to content

Commit 18d4de5

Browse files
[helm]: fix system integration to utilise hostfs mount
1 parent 4d98382 commit 18d4de5

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
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

0 commit comments

Comments
 (0)