-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
81 lines (81 loc) · 2.11 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
---
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:24317
filelog:
include: ["/var/log/*.log"]
include_file_path: true
hostmetrics:
collection_interval: 1m
scrapers:
load:
filesystem:
memory:
network:
paging:
process:
system:
processors:
batch: {}
transform/severity_parse:
log_statements:
- context: log
statements:
- set(severity_text, "Info") where IsMatch(body.string, ".*INFO.*")
- set(severity_text, "Warn") where IsMatch(body.string, ".*WARN.*")
- set(severity_text, "Error") where IsMatch(body.string, ".*ERROR.*")
- set(severity_text, "Fatal") where IsMatch(body.string, ".*FATAL.*")
exporters:
debug:
verbosity: detailed
otlp:
endpoint: ${env:INSTANA_OTEL_ENDPOINT_GRPC:-localhost:4317}
headers:
x-instana-key: ${env:INSTANA_KEY:-instanalocal}
x-instana-host: ${env:INSTANA_HOST:-"yourhost.ibm.com"}
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp, debug]
logs:
receivers: [otlp, filelog]
processors: [transform/severity_parse, batch]
exporters: [otlp]
metrics:
receivers: [otlp, hostmetrics]
processors: [batch]
exporters: [otlp, debug]
telemetry:
logs:
level: debug
processors:
- batch:
exporter:
otlp:
protocol: http/protobuf
endpoint: ${env:INSTANA_OTEL_ENDPOINT_HTTP:-http://localhost:8992}
headers:
x-instana-key: ${env:INSTANA_KEY:-instanalocal}
metrics:
readers:
- periodic:
exporter:
otlp:
protocol: grpc/protobuf
endpoint: ${env:INSTANA_OTEL_ENDPOINT_GRPC:-localhost:4317}
headers:
x-instana-key: ${env:INSTANA_KEY:-instanalocal}
# extensions: [opamp]
# extensions:
# opamp:
# server:
# ws:
# endpoint: ws://127.0.0.1:4320/v1/opamp
# tls:
# insecure_skip_verify: true