-
Notifications
You must be signed in to change notification settings - Fork 67
/
otel-config.yaml
46 lines (46 loc) · 1.1 KB
/
otel-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
extensions:
health_check: {}
receivers:
otlp:
protocols:
grpc:
http:
fluentforward:
endpoint: 0.0.0.0:8006
processors:
batch:
# Will convert all monotonic, cumulative sums to monotonic, delta sums
cumulativetodelta:
transform:
trace_statements:
- context: span
statements:
- truncate_all(attributes, 4095)
- truncate_all(resource.attributes, 4095)
log_statements:
- context: log
statements:
- truncate_all(attributes, 4095)
- truncate_all(resource.attributes, 4095)
exporters:
debug:
verbosity: $LOG_EXPORTER_LOG_VERBOSITY
otlphttp:
endpoint: https://otlp.nr-data.net
headers:
api-key: $NEW_RELIC_API_KEY
service:
extensions: [health_check]
pipelines:
metrics:
receivers: [otlp]
processors: [cumulativetodelta, batch]
exporters: [debug, otlphttp]
traces:
receivers: [otlp]
processors: [transform, batch]
exporters: [debug, otlphttp]
logs:
receivers: [otlp, fluentforward]
processors: [transform, batch]
exporters: [debug, otlphttp]