-
Notifications
You must be signed in to change notification settings - Fork 39
/
linux.yaml
87 lines (87 loc) · 2.18 KB
/
linux.yaml
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
receivers:
hostmetrics/linux/localhost:
scrapers:
cpu:
metrics:
system.cpu.utilization:
enabled: true
load: null
memory:
metrics:
system.memory.utilization:
enabled: true
disk: null
filesystem:
metrics:
system.filesystem.utilization:
enabled: true
network: null
paging: null
process:
mute_process_name_error: true
metrics:
process.threads:
enabled: true
process.paging.faults:
enabled: true
process.cpu.utilization:
enabled: true
process.memory.utilization:
enabled: true
process.signals_pending:
enabled: true
process.open_file_descriptors:
enabled: true
process.context_switches:
enabled: true
process.disk.operations:
enabled: true
filelog/linux/logs/localhost:
include_file_name: false
include_file_path: true
operators:
- type: move
from: attributes["log.file.path"]
to: resource["log.file.path"]
include:
- /var/log/auth.log
- /var/log/syslog
- /var/log/daemon.log
- /var/log/dpkg.log
- /var/log/kern.log
- /var/log/audit/audit.log
- /var/log/secure
- /var/log/messages
- /var/log/yum.log
- /var/log/dnf.log
processors:
resource/linux_resource_attributes/localhost:
attributes:
- key: sumo.datasource
value: linux
action: insert
- key: _sourceCategory
value: otel/linux
action: insert
service:
pipelines:
metrics/linux/localhost:
receivers:
- hostmetrics/linux/localhost
processors:
- memory_limiter
- resource/linux_resource_attributes/localhost
- resourcedetection/system
- batch
exporters:
- sumologic
logs/linux/localhost:
receivers:
- filelog/linux/logs/localhost
processors:
- memory_limiter
- resource/linux_resource_attributes/localhost
- resourcedetection/system
- batch
exporters:
- sumologic