Skip to content

Commit fa19973

Browse files
🔄 synced local 'assets/conf.d/examples/' with remote 'otelcol-examples/' (#260)
Co-authored-by: sumologic-sanyaku-apps <null>
1 parent 64e69ce commit fa19973

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
receivers:
2+
jmx/hadoopmetrics/localhost:
3+
jar_path: /opt/opentelemetry-jmx-metrics.jar
4+
endpoint: localhost:8004
5+
target_system: hadoop
6+
collection_interval: 1m
7+
username: sumo_jmx
8+
password: safe_password
9+
log_level: info
10+
filelog/hadoop/namenode/localhost:
11+
storage: file_storage
12+
include_file_name: false
13+
include_file_path: true
14+
operators:
15+
- type: move
16+
from: attributes["log.file.path"]
17+
to: resource["log.file.path"]
18+
- type: copy
19+
from: resource["log.file.path"]
20+
to: resource["_sourceName"]
21+
include:
22+
- /usr/local/hadoop/logs/hadoop-*-*namenode-*.log
23+
filelog/hadoop/datanode/localhost:
24+
storage: file_storage
25+
include_file_name: false
26+
include_file_path: true
27+
operators:
28+
- type: move
29+
from: attributes["log.file.path"]
30+
to: resource["log.file.path"]
31+
- type: copy
32+
from: resource["log.file.path"]
33+
to: resource["_sourceName"]
34+
include:
35+
- /usr/local/hadoop/logs/hadoop-*-datanode-*.log
36+
filelog/hadoop/resourcemanager/localhost:
37+
storage: file_storage
38+
include_file_name: false
39+
include_file_path: true
40+
operators:
41+
- type: move
42+
from: attributes["log.file.path"]
43+
to: resource["log.file.path"]
44+
- type: copy
45+
from: resource["log.file.path"]
46+
to: resource["_sourceName"]
47+
include:
48+
- /usr/local/hadoop/logs/hadoop-*-resourcemanager-*.log
49+
filelog/hadoop/nodemanager/localhost:
50+
storage: file_storage
51+
include_file_name: false
52+
include_file_path: true
53+
operators:
54+
- type: move
55+
from: attributes["log.file.path"]
56+
to: resource["log.file.path"]
57+
- type: copy
58+
from: resource["log.file.path"]
59+
to: resource["_sourceName"]
60+
include:
61+
- /usr/local/hadoop/logs/hadoop-*-nodemanager-*.log
62+
processors:
63+
resource/hadoop_resource_attributes/localhost:
64+
attributes:
65+
- key: sumo.datasource
66+
value: hadoop
67+
action: insert
68+
- key: _contentType
69+
value: OpenTelemetry
70+
action: insert
71+
- key: bigdata.system
72+
value: hadoop
73+
action: insert
74+
- key: bigdata.node.name
75+
action: insert
76+
from_attribute: host.name
77+
- key: bigdata.cluster.name
78+
value: test
79+
action: insert
80+
resource/hadoop_resource_attributes/logs/localhost:
81+
attributes:
82+
- key: _source
83+
value: hadoop/filelog
84+
action: insert
85+
resource/hadoop_resource_attributes/metrics/localhost:
86+
attributes:
87+
- key: _source
88+
value: hadoop/jmx
89+
action: insert
90+
- key: _sourceName
91+
value: hadoop
92+
action: insert
93+
service:
94+
pipelines:
95+
metrics/hadoop/localhost:
96+
receivers:
97+
- jmx/hadoopmetrics/localhost
98+
processors:
99+
- memory_limiter
100+
- resourcedetection/system
101+
- batch
102+
- resource/hadoop_resource_attributes/localhost
103+
- resource/hadoop_resource_attributes/metrics/localhost
104+
exporters:
105+
- sumologic
106+
logs/hadoop/localhost:
107+
receivers:
108+
- filelog/hadoop/namenode/localhost
109+
- filelog/hadoop/datanode/localhost
110+
- filelog/hadoop/resourcemanager/localhost
111+
- filelog/hadoop/nodemanager/localhost
112+
processors:
113+
- memory_limiter
114+
- resourcedetection/system
115+
- resource/hadoop_resource_attributes/logs/localhost
116+
- resource/hadoop_resource_attributes/localhost
117+
- batch
118+
exporters:
119+
- sumologic

0 commit comments

Comments
 (0)