-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
ootb-ec2.yaml
120 lines (111 loc) · 2.84 KB
/
ootb-ec2.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
receivers:
otlp:
protocols:
http:
endpoint: "localhost:4318"
grpc:
endpoint: "localhost:4317"
hostmetrics:
collection_interval: 10s
scrapers:
paging:
metrics:
system.paging.utilization:
enabled: true
cpu:
metrics:
system.cpu.utilization:
enabled: true
system.cpu.physical.count:
enabled: true
system.cpu.logical.count:
enabled: true
system.cpu.frequency:
enabled: true
disk:
filesystem:
metrics:
system.filesystem.utilization:
enabled: true
load:
memory:
network:
processes:
prometheus:
config:
scrape_configs:
- job_name: 'otelcol'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']
filelog:
include_file_path: true
poll_interval: 500ms
include:
- /var/log/*/app.log
operators:
- type: json_parser
# If your logs are not json, please make sure that you are using the regex_parser to parse out the timestamp into attributes.time.
# - type: regex_parser
# id: parser-timestamp
# ...
# Layout needs to match log timestamp format. If this section is removed, timestamp will correspond to time log was intake by DD.
- type: time_parser
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S%z'
processors:
batch:
send_batch_max_size: 1000
send_batch_size: 100
timeout: 10s
memory_limiter:
check_interval: 1s
limit_mib: 4000
spike_limit_mib: 800
resourcedetection:
detectors: [env, ec2, system]
system:
resource_attributes:
os.description:
enabled: true
host.arch:
enabled: true
host.cpu.vendor.id:
enabled: true
host.cpu.family:
enabled: true
host.cpu.model.id:
enabled: true
host.cpu.model.name:
enabled: true
host.cpu.stepping:
enabled: true
host.cpu.cache.l2.size:
enabled: true
exporters:
datadog:
api:
site: ${env:DD_SITE}
key: ${env:DD_API_KEY}
traces:
trace_buffer: 500
connectors:
datadog/connector:
service:
pipelines:
metrics:
receivers: [datadog/connector, otlp, hostmetrics]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]
traces:
receivers: [otlp]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog/connector]
traces/sampling:
receivers: [datadog/connector]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]
logs:
receivers: [otlp, filelog]
processors: [memory_limiter, batch, resourcedetection]
exporters: [datadog]