-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy paththanos-app.yaml
197 lines (164 loc) · 5.9 KB
/
thanos-app.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
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: thanos-app
namespace: argocd
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: monitoring
source:
repoURL: registry-1.docker.io
chart: bitnamicharts/thanos
targetRevision: 15.14.1
helm:
version: v3
skipCrds: true
valuesObject:
fullnameOverride: thanos
existingObjstoreSecret: thanos-objstore-config
https:
enabled: false
########################################################################
# ___
# / _ \ _ _ ___ _ __ _ _
# | | | | | | |/ _ \ '__| | | |
# | |_| | |_| | __/ | | |_| |
# \__\_\\__,_|\___|_| \__, |
# |___/
########################################################################
query:
# Only for SideCar
dnsDiscovery: {}
# sidecarsService: "prometheus-operated"
# sidecarsNamespace: "prometheus"
autoscaling:
enabled: false
minReplicas: "1"
maxReplicas: "4"
targetCPU: 70
targetMemory: 80
extraEnvVars:
- name: "THANOS_ALLOW_EXISTING_BUCKET_USE"
value: "true"
resources:
requests:
cpu: 250m
memory: 1024M
limits:
cpu: 2
memory: 4096M
revisionHistoryLimit: 2
########################################################################
# ___ _____ _ _
# / _ \ _ _ ___ _ __ _ _ | ___| __ ___ _ __ | |_ ___ _ __ __| |
# | | | | | | |/ _ \ '__| | | | | |_ | '__/ _ \| '_ \| __/ _ \ '_ \ / _` |
# | |_| | |_| | __/ | | |_| | | _|| | | (_) | | | | || __/ | | | (_| |
# \__\_\\__,_|\___|_| \__, | |_| |_| \___/|_| |_|\__\___|_| |_|\__,_|
# |___/
########################################################################
queryFrontend:
ingress:
enabled: false
revisionHistoryLimit: 2
########################################################################
# ____ _
# / ___|___ _ __ ___ _ __ __ _ ___| |_ ___ _ __
# | | / _ \| '_ ` _ \| '_ \ / _` |/ __| __/ _ \| '__|
# | |__| (_) | | | | | | |_) | (_| | (__| || (_) | |
# \____\___/|_| |_| |_| .__/ \__,_|\___|\__\___/|_|
# |_|
########################################################################
compactor:
enabled: true
revisionHistoryLimit: 2
retentionResolutionRaw: 30d
retentionResolution5m: 30d
retentionResolution1h: 10y
resources:
requests:
cpu: 250m
memory: 512M
limits:
cpu: 2
memory: 2048M
persistence:
enabled: true
storageClass: local-path
size: 32Gi
serviceAccount:
create: true
extraEnvVars:
- name: "THANOS_ALLOW_EXISTING_BUCKET_USE"
value: "true"
########################################################################
# ____ _ ____ _
# / ___|| |_ ___ _ __ __ _ __ _ ___ / ___| __ _| |_ _____ ____ _ _ _
# \___ \| __/ _ \| '__/ _` |/ _` |/ _ \ | | _ / _` | __/ _ \ \ /\ / / _` | | | |
# ___) | || (_) | | | (_| | (_| | __/ | |_| | (_| | || __/\ V V / (_| | |_| |
# |____/ \__\___/|_| \__,_|\__, |\___| \____|\__,_|\__\___| \_/\_/ \__,_|\__, |
# |___/ |___/
########################################################################
storegateway:
enabled: true
resourcesPreset: "small"
persistence:
enabled: true
storageClass: local-path
size: 8Gi
serviceAccount:
create: true
extraEnvVars:
- name: "THANOS_ALLOW_EXISTING_BUCKET_USE"
value: "true"
########################################################################
# ____ _
# | _ \ ___ ___ ___(_)_ _____ _ __
# | |_) / _ \/ __/ _ \ \ \ / / _ \ '__|
# | _ < __/ (_| __/ |\ V / __/ |
# |_| \_\___|\___\___|_| \_/ \___|_|
########################################################################
receive:
enabled: true
modes: standalone
logLevel: info
logFormat: logfmt
replicationFactor: 1
replicaCount: 2
config: []
tsdbPath: ""
existingConfigmap: ""
replicaLabel: replica
extraEnvVars:
- name: TZ
value: "Europe/Amsterdam"
resources:
requests:
cpu: 250m,
memory: 1024M
limits:
cpu: 2
memory: 8192M
persistence:
storageClass: local-path
size: 64Gi
########################################################################
# __ __ _ _
# | \/ | ___| |_ _ __(_) ___ ___
# | |\/| |/ _ \ __| '__| |/ __/ __|
# | | | | __/ |_| | | | (__\__ \
# |_| |_|\___|\__|_| |_|\___|___/
########################################################################
metrics:
enabled: true
serviceMonitor:
enabled: true
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- Retry=true
automated:
selfHeal: false
prune: true