-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalues.yaml
128 lines (128 loc) · 3.33 KB
/
values.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
opentelemetry-collector:
image:
repository: otel/opentelemetry-collector-contrib
tag: 0.118.0
mode: daemonset
service:
enabled: true
presets:
logsCollection:
enabled: true
kubernetesAttributes:
enabled: true
kubeletMetrics:
enabled: true
kubernetesEvents:
enabled: true
hostMetrics:
enabled: true
ports:
metrics:
enabled: true
prom-exp:
enabled: true
containerPort: 9090
servicePort: 9090
protocol: TCP
podMonitor:
enabled: true
metricsEndpoints:
- port: metrics
- port: prom-exp
prometheusRule:
enabled: true
defaultRules:
enabled: true
clusterRole:
create: true
config:
exporters:
debug:
verbosity: basic
otlphttp/loki:
endpoint: http://loki-gateway.loki/otlp
prometheus:
endpoint: ${env:MY_POD_IP}:9090
send_timestamps: true
enable_open_metrics: true
add_metric_suffixes: false
metric_expiration: 180m
resource_to_telemetry_conversion:
enabled: true
extensions:
# The health_check extension is mandatory for this chart.
# Without the health_check extension the collector will fail the readiness and liveliness probes.
# The health_check extension can be modified, but should never be removed.
health_check:
endpoint: ${env:MY_POD_IP}:13133
processors:
batch:
send_batch_size: 10000
timeout: 1s
# Default memory limiter configuration for the collector based on k8s resource limits.
memory_limiter:
# check_interval is the time between measurements of memory usage.
check_interval: 5s
# By default limit_mib is set to 80% of ".Values.resources.limits.memory"
limit_percentage: 80
# By default spike_limit_mib is set to 25% of ".Values.resources.limits.memory"
spike_limit_percentage: 25
# Merges with the k8sattributes preset.
k8sattributes:
extract:
labels:
- tag_name: service.name
key: app.kubernetes.io/name
from: pod
- tag_name: service.version
key: app.kubernetes.io/version
from: pod
receivers:
otlp:
protocols:
grpc:
endpoint: ${env:MY_POD_IP}:4317
http:
endpoint: ${env:MY_POD_IP}:4318
prometheus:
config:
scrape_configs:
- job_name: opentelemetry-collector
scrape_interval: 10s
static_configs:
- targets:
- ${env:MY_POD_IP}:8888
service:
telemetry:
metrics:
address: ${env:MY_POD_IP}:8888
extensions:
- health_check
pipelines:
logs:
exporters:
- debug
- otlphttp/loki
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
exporters:
- debug
- prometheus
processors:
- memory_limiter
- batch
receivers:
- otlp
- prometheus
traces:
exporters:
- debug
processors:
- memory_limiter
- batch
receivers:
- otlp