-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
203 lines (197 loc) · 6.58 KB
/
config.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
receivers:
otlp:
protocols:
http:
endpoint: collector:4318
grpc:
endpoint: collector:4317
# The hostmetrics receiver is required to get correct infrastructure metrics in Datadog.
hostmetrics:
collection_interval: 10s
scrapers:
paging:
metrics:
system.paging.utilization:
enabled: true
cpu:
metrics:
system.cpu.utilization:
enabled: true
disk:
filesystem:
metrics:
system.filesystem.utilization:
enabled: true
load:
memory:
network:
processes:
docker_stats:
processors:
batch:
# Datadog APM Intake limit is 3.2MB. Let's make sure the batches do not
# go over that.
send_batch_max_size: 1000
send_batch_size: 100
timeout: 10s
# https://docs.datadoghq.com/opentelemetry/schema_semantics/host_metadata/#opting-in-to-the-feature
transform:
metric_statements:
- context: resource
statements:
- set(attributes["datadog.host.use_as_metadata"], true)
trace_statements:
- context: resource
statements:
- set(attributes["datadog.host.use_as_metadata"], true)
log_statements:
- context: resource
statements:
- set(attributes["datadog.host.use_as_metadata"], true)
metricstransform:
# https://docs.datadoghq.com/opentelemetry/runtime_metrics/java/
transforms:
# The total Java heap memory used.
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.heap_memory
# The total Java heap memory committed to be used.
- include: process.runtime.jvm.memory.committed
action: update
new_name: jvm.heap_memory_committed
# The initial Java heap memory allocated.
- include: process.runtime.jvm.memory.init
action: update
new_name: jvm.heap_memory_init
# The maximum Java heap memory available.
- include: process.runtime.jvm.memory.limit
action: update
new_name: jvm.heap_memory_max
# The total Java non-heap memory used. Non-heap memory is:
# Metaspace + CompressedClassSpace + CodeCache.
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.non_heap_memory
# The total Java non-heap memory committed to be used.
- include: process.runtime.jvm.memory.committed
action: update
new_name: jvm.non_heap_memory_committed
# The initial Java non-heap memory allocated.
- include: process.runtime.jvm.memory.init
action: update
new_name: jvm.non_heap_memory_init
# The maximum Java non-heap memory available.
- include: process.runtime.jvm.memory.limit
action: update
new_name: jvm.non_heap_memory_max
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.gc.old_gen_size
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.gc.eden_size
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.gc.survivor_size
- include: process.runtime.jvm.memory.usage
action: update
new_name: jvm.gc.metaspace_size
# The number of live threads.
- include: process.runtime.jvm.threads.count
action: update
new_name: jvm.thread_count
# Number of classes currently loaded.
- include: process.runtime.jvm.classes.loaded
action: update
new_name: jvm.loaded_classes
# Recent CPU utilization for the whole system.
- include: process.runtime.jvm.system.cpu.utilization
action: update
new_name: jvm.cpu_load.system
# Recent CPU utilization for the process.
- include: process.runtime.jvm.cpu.utilization
action: update
new_name: jvm.cpu_load.process
# Measure of memory used by direct buffers.
- include: process.runtime.jvm.buffer.usage
action: update
new_name: jvm.buffer_pool.direct.used
# Number of direct buffers in the pool.
- include: process.runtime.jvm.buffer.count
action: update
new_name: jvm.buffer_pool.direct.count
# Measure of total memory capacity of direct buffers.
- include: process.runtime.jvm.buffer.limit
action: update
new_name: jvm.buffer_pool.direct.capacity
# Measure of memory used by mapped buffers.
- include: process.runtime.jvm.buffer.usage
action: update
new_name: jvm.buffer_pool.mapped.used
# Number of mapped buffers in the pool.
- include: process.runtime.jvm.buffer.count
action: update
new_name: jvm.buffer_pool.mapped.count
# Measure of total memory capacity of mapped buffers.
- include: process.runtime.jvm.buffer.limit
action: update
new_name: jvm.buffer_pool.mapped.capacity
# The approximate accumulated garbage collection time elapsed.
- include: process.runtime.jvm.gc.duration
action: update
new_name: jvm.gc.parnew.time
# AWS ECS metrics
- include: ecs.task.memory.utilized
action: update
new_name: MemoryUtilized
- include: ecs.task.memory.reserved
action: update
new_name: MemoryReserved
- include: ecs.task.cpu.utilized
action: update
new_name: CpuUtilized
- include: ecs.task.cpu.reserved
action: update
new_name: CpuReserved
- include: ecs.task.network.rate.rx
action: update
new_name: NetworkRxBytes
- include: ecs.task.network.rate.tx
action: update
new_name: NetworkTxBytes
- include: ecs.task.storage.read_bytes
action: update
new_name: StorageReadBytes
- include: ecs.task.storage.write_bytes
action: update
new_name: StorageWriteBytes
connectors:
datadog/connector:
traces:
trace_buffer: 500
ignore_resources: ["(GET) /health"]
exporters:
datadog/exporter:
traces:
trace_buffer: 500
ignore_resources: ["(GET) /health"]
api:
site: datadoghq.com
key: ${DD_API_KEY}
extensions:
health_check:
service:
extensions: [health_check]
pipelines:
logs:
receivers: [otlp]
processors: [batch, transform]
exporters: [datadog/exporter]
metrics:
receivers: [datadog/connector, otlp]
processors: [batch, transform, metricstransform]
exporters: [datadog/exporter]
traces:
receivers: [otlp]
processors: [batch, transform]
exporters: [datadog/connector, datadog/exporter]