forked from jriguera/otel-helloworldprocessor
-
Notifications
You must be signed in to change notification settings - Fork 3
/
otelcol.yaml
79 lines (71 loc) · 1.5 KB
/
otelcol.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
extensions:
health_check:
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
headers_setter:
headers:
- action: upsert
key: X-Scope-OrgId
from_context: tenant
http_forwarder:
ingress:
endpoint: "0.0.0.0:8081"
egress:
endpoint: http://http-server:80
headers:
my-header: otel-forwarder
timeout: 5s
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 30s
static_configs:
- targets: ['0.0.0.0:8888']
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
groupbyattrs/tenant:
keys: [service.name]
# service.name comes from the resource attribute from prometheus metrics
context/tenant:
actions:
- action: insert
key: tenant
value: anonymous
from_attribute: service.name
exporters:
debug:
verbosity: detailed
otlphttp:
endpoint: http://http-server:1080
compression: none
auth:
authenticator: headers_setter
prometheusremotewrite:
endpoint: http://http-server:1080
resource_to_telemetry_conversion:
enabled: true
auth:
authenticator: headers_setter
service:
telemetry:
logs:
level: "info"
pipelines:
metrics:
receivers: [prometheus]
processors: [context/tenant]
exporters: [otlphttp]
extensions:
- health_check
- pprof
- zpages
- headers_setter