-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvalues-opentelemetry-demo.yaml
96 lines (92 loc) · 2.36 KB
/
values-opentelemetry-demo.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
---
opentelemetry-collector:
mode: deployment # using single-instance due to tail sampling
resources:
limits:
memory: 512Mi
presets:
logsCollection:
enabled: false
includeCollectorLogs: false
service:
enabled: true
config:
exporters:
opensearch: null
otlphttp/prometheus: null
otlp:
endpoint: http://tempo-distributor-lgtm-central.tempo.svc:4317
tls:
insecure: true # Linkerd uses mTLS behind the scenes
headers:
X-Scope-OrgID: remote02
prometheusremotewrite:
endpoint: http://mimir-distributor-lgtm-central.mimir.svc:8080/api/v1/push
tls:
insecure: true # Linkerd uses mTLS behind the scenes
headers:
X-Scope-OrgID: remote02
loki:
endpoint: http://loki-write-lgtm-central.loki.svc:3100/loki/api/v1/push
tls:
insecure: true # Linkerd uses mTLS behind the scenes
headers:
X-Scope-OrgID: remote02
processors:
tail_sampling:
policies:
[
# forward all traces with errors
{
name: errors-policy,
type: status_code,
status_code: { status_codes: [ERROR] }
},
# forward only the 30% of successful traces with latency over 50ms
{
name: long-traces-policy,
type: and,
and: {
and_sub_policy: [
{
name: latency-policy,
type: latency,
latency: { threshold_ms: 50 }
},
{
name: randomized-policy,
type: probabilistic,
probabilistic: { sampling_percentage: 30 }
}
]
}
}
]
service:
pipelines:
metrics:
receivers:
- otlp
- prometheus
exporters:
- prometheusremotewrite
logs:
exporters:
- loki
traces:
processors:
- k8sattributes
- tail_sampling
- memory_limiter
- resource
- batch
exporters:
- otlp
jaeger:
enabled: false
prometheus:
enabled: false
grafana:
enabled: false
opensearch:
enabled: false