Skip to content

Commit 660ded7

Browse files
committed
testing
1 parent 58498ae commit 660ded7

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

charts/dependencies/files/beats/metricbeat.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,39 @@ metricbeat.modules:
2222
- filesystem
2323
period: 10s
2424
processors:
25-
- rename:
26-
fields:
27-
- from: "agent.hostname"
28-
to: "host.name"
29-
ignore_missing: true
30-
fail_on_error: false
25+
- add_host_metadata: ~
26+
# - add_cloud_metadata: ~
27+
# - add_host_metadata:
28+
# host: ${NODE_NAME}
29+
# - rename:
30+
# fields:
31+
# - from: "agent.hostname"
32+
# to: "host.name"
33+
# ignore_missing: true
34+
# fail_on_error: false
3135
- add_kubernetes_metadata:
3236
host: ${NODE_NAME}
3337
# Enable more indexers for better pod correlation
3438
default_indexers.enabled: true
3539
default_matchers.enabled: true
36-
37-
# Ensure container.id is set for pod correlation
38-
- copy_fields:
39-
fields:
40-
- from: kubernetes.pod.uid
41-
to: container.id
42-
ignore_missing: true
43-
fail_on_error: false
44-
when:
45-
not:
46-
has_fields: ['container.id']
4740

41+
# Ensure container.id is set for pod correlation
42+
# - copy_fields:
43+
# fields:
44+
# - from: kubernetes.pod.uid
45+
# to: container.id
46+
# ignore_missing: true
47+
# fail_on_error: false
48+
# when:
49+
# not:
50+
# has_fields: ['container.id']
51+
# - rename:
52+
# - copy_fields:
53+
# fields:
54+
# - from: "kubernetes.node.name"
55+
# to: "host.name"
56+
# ignore_missing: true
57+
# fail_on_error: false
4858
#========================== Elasticsearch output ===============================
4959
output.elasticsearch:
5060
hosts: ['${ELASTICSEARCH_HOST}']

0 commit comments

Comments
 (0)