-
Notifications
You must be signed in to change notification settings - Fork 8
/
values-mimir.yaml
207 lines (184 loc) · 4.87 KB
/
values-mimir.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# Warning: there won't be any resource requests/limits for any Mimir-related container
---
serviceAccount: # There is no way to set an account per component
create: true
name: mimir-sa
global:
extraEnv:
- name: JAEGER_ENDPOINT
value: 'http://grafana-alloy.observability.svc:14268/api/traces'
- name: JAEGER_SAMPLER_TYPE
value: 'const'
- name: JAEGER_SAMPLER_PARAM
value: '1'
rbac:
create: false
mimir:
structuredConfig:
multitenancy_enabled: true
usage_stats:
enabled: false
server:
grpc_server_max_concurrent_streams: 1000
common:
storage:
backend: s3
s3: # Based on values-minio.yaml
endpoint: minio.storage.svc:9000
access_key_id: remote_user
secret_access_key: R3m0t3us3r
insecure: true
distributor:
instance_limits:
max_ingestion_rate: 30000 # Per-distributor rate limit
max_inflight_push_requests: 250
frontend:
log_queries_longer_than: 1m
querier:
query_store_after: 3h # < query_ingesters_within (default: 12h)
limits:
ingestion_rate: 30000 # Per-user rate limit
max_global_series_per_user: 1000000 # To accomodate one big tenant
max_global_series_per_metric: 100000
max_label_names_per_series: 100
cardinality_analysis_enabled: true
compactor_blocks_retention_period: 7d # Global Metrics TTL
query_ingesters_within: 4h # > query_store_after (default: 13h)
# Allow ingestion of out-of-order samples up to X minutes since the latest received sample for the series.
# https://grafana.com/docs/mimir/latest/operators-guide/configure/configure-out-of-order-samples-ingestion/
out_of_order_time_window: 15m
max_cache_freshness: 15m
ruler:
alertmanager_url: http://monitor-alertmanager.observability.svc:9093
blocks_storage:
bucket_store:
ignore_blocks_within: 3h # < query_store_after (default: 10h)
tsdb:
retention_period: 6h # > query_store_after (default: 13h)
s3:
bucket_name: mimir-data
ruler_storage:
s3:
bucket_name: mimir-ruler
alertmanager_storage:
s3:
bucket_name: mimir-alerts
runtimeConfig:
ingester_limits:
max_inflight_push_requests: 250
max_ingestion_rate: 30000
max_series: 1000000
gateway:
enabledNonEnterprise: true
minio:
enabled: false
rollout_operator:
enabled: false
overrides_exporter:
resources: {}
ruler:
replicas: 2
resources: {}
initContainers:
- name: wait-chunks
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-chunks-cache; do echo waiting for memcached; sleep 1; done']
- name: wait-metadata
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-metadata-cache; do echo waiting for memcached; sleep 1; done']
alertmanager: # Unused for now
resources: {}
distributor:
replicas: 2
resources: {}
ingester:
replicas: 3
persistentVolume:
size: 20Gi
resources: {}
zoneAwareReplication:
enabled: false
compactor:
replicas: 2
persistentVolume:
size: 10Gi
resources: {}
querier:
replicas: 3
resources: {}
initContainers:
- name: wait-metadata
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-metadata-cache; do echo waiting for memcached; sleep 1; done']
query_frontend:
replicas: 2
resources: {}
initContainers:
- name: wait-results
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-results-cache; do echo waiting for memcached; sleep 1; done']
query_scheduler:
replicas: 2
store_gateway:
replicas: 3
persistentVolume:
size: 10Gi
resources: {}
zoneAwareReplication:
enabled: false
initContainers:
- name: wait-metadata
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-metadata-cache; do echo waiting for memcached; sleep 1; done']
- name: wait-chunks
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup mimir-chunks-cache; do echo waiting for memcached; sleep 1; done']
chunks-cache:
enabled: true
replicas: 3
allocatedMemory: 1024
resources:
requests:
cpu: 25m
index-cache:
enabled: true
replicas: 3
allocatedMemory: 768
resources:
requests:
cpu: 25m
metadata-cache:
enabled: true
replicas: 1
allocatedMemory: 384
resources:
requests:
cpu: 25m
results-cache:
enabled: true
replicas: 2
allocatedMemory: 512
resources:
requests:
cpu: 25m
metaMonitoring:
serviceMonitor:
enabled: true
labels:
release: monitor
dashboards:
enabled: true
labels:
release: monitor
prometheusRule:
enabled: true
mimirAlerts: true
mimirRules: true
labels:
release: monitor