You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you want to achieve a setup like above and have an overarching Thanos Query to run with multiple Stores, you can set it to `standalone` and add your own store list. Setup your Plugin like this:
179
+
In case you want to achieve a setup like above and have an overarching Thanos Query to run with multiple Stores, you can disable all other thanos components and add your own store list. Setup your Plugin like this:
180
180
181
181
```yaml
182
182
spec:
183
183
optionsValues:
184
-
- name: thanos.query.standalone
185
-
value: true
184
+
- name: thanos.store.enabled
185
+
value: false
186
+
- name: thanos.compactor.enabled
187
+
value: false
186
188
```
187
189
188
190
This would enable you to either:
@@ -260,7 +262,7 @@ It is possible to disable certain Thanos components for your deployment. To do s
260
262
261
263
| Thanos Component | Enabled by default | Deactivatable | Flag |
@@ -381,16 +383,15 @@ If Blackbox-exporter is enabled and store endpoints are provided, this Thanos de
381
383
| thanos.query.persesDatasource.create | bool | `true` | Creates a Perses datasource for Thanos Query |
382
384
| thanos.query.persesDatasource.isDefault | bool | `true` | set datasource as default for Perses. Consider setting this to `false` only if you have another (default) datasource for Perses already. |
383
385
| thanos.query.persesDatasource.selector | object | `{}` | Label selectors for the Perses sidecar to detect this datasource. |
384
-
| thanos.query.plutonoDatasource.create | bool | `false` | Creates a Perses datasource for standalone Thanos Query |
386
+
| thanos.query.plutonoDatasource.create | bool | `false` | Creates a Perses datasource for Thanos Query |
385
387
| thanos.query.plutonoDatasource.isDefault | bool | `false` | set datasource as default for Plutono |
386
388
| thanos.query.plutonoDatasource.selector | object | `{}` | Label selectors for the Plutono sidecar to detect this datasource. |
387
389
| thanos.query.replicaLabel | string | `"prometheus_replica"` | Set Thanos Query replica-label for Prometheus replicas |
388
390
| thanos.query.replicas | string | `nil` | Number of Thanos Query replicas to deploy |
389
391
| thanos.query.resources | object | <pre>ressources:<br> requests:<br> memory:<br> cpu:<br> limits:<br> memory:<br> cpu:<br></pre> | Resource requests and limits for the Thanos Query container. |
390
392
| thanos.query.serviceAnnotations | object | `{}` | Service specific annotations to add to the Thanos Query service in addition to its already configured annotations. |
391
393
| thanos.query.serviceLabels | object | `{}` | Labels to add to the Thanos Query service |
392
-
| thanos.query.standalone | bool | `false` | |
393
-
| thanos.query.stores | list | `[]` | |
394
+
| thanos.query.stores | list | `[]` | Thanos Query store endpoints |
In case you want to achieve a setup like above and have an overarching Thanos Query to run with multiple Stores, you can set it to `standalone`and add your own store list. Setup your Plugin like this:
179
+
In case you want to achieve a setup like above and have an overarching Thanos Query to run with multiple Stores, you can disable all other thanos componentsand add your own store list. Setup your Plugin like this:
180
180
181
181
```yaml
182
182
spec:
183
183
optionsValues:
184
-
- name: thanos.query.standalone
185
-
value: true
184
+
- name: thanos.store.enabled
185
+
value: false
186
+
- name: thanos.compactor.enabled
187
+
value: false
186
188
```
187
189
188
190
This would enable you to either:
@@ -260,7 +262,7 @@ It is possible to disable certain Thanos components for your deployment. To do s
260
262
261
263
| Thanos Component | Enabled by default | Deactivatable | Flag |
Copy file name to clipboardExpand all lines: thanos/charts/templates/tests/test-thanos-config.yaml
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ data:
23
23
verify "there is 1 service named '{{ .Release.Name }}-query'"
24
24
verify "there is 1 configmap named '{{ .Release.Name }}-sd-config'"
25
25
try "at most 3 times every 5s to get pods named '{{ .Release.Name }}-query' and verify that '.status.phase' is 'running'"
26
+
try "at most 3 times every 5s to get pods named 'prometheus-.*-[0-9]$' and verify that '.status.containerStatuses[*].name' is 'config-reloader,prometheus,thanos-sidecar'"
26
27
27
28
endpoints=$(kubectl get cm {{ .Release.Name }}-sd-config -oyaml | yq '.data["endpoint-targets.yaml"] | select(. != null)' | yq '.endpoints[].address')
28
29
for endpoint in $endpoints; do
@@ -37,15 +38,15 @@ data:
37
38
done
38
39
}
39
40
40
-
{{ if and .Values.thanos.store.enabled (not .Values.thanos.query.standalone) }}
41
+
{{ if and .Values.thanos.store.enabled }}
41
42
@test "Verify {{ .Release.Name }} Store" {
42
43
verify "there is 1 deployment named '{{ .Release.Name }}-store'"
43
44
verify "there is 1 service named '{{ .Release.Name }}-store'"
44
45
try "at most 3 times every 5s to get pods named '{{ .Release.Name }}-store' and verify that '.status.phase' is 'running'"
45
46
}
46
47
{{ end }}
47
48
48
-
{{ if and .Values.thanos.compactor.enabled (not .Values.thanos.query.standalone) }}
49
+
{{ if and .Values.thanos.compactor.enabled }}
49
50
@test "Verify {{ .Release.Name }} Compactor" {
50
51
verify "there is 1 deployment named '{{ .Release.Name }}-compactor'"
51
52
verify "there is 1 service named '{{ .Release.Name }}-compactor'"
@@ -76,12 +77,6 @@ data:
76
77
}
77
78
{{ end }}
78
79
79
-
{{ if (not .Values.thanos.query.standalone) }}
80
-
@test "Verify prometheus sidecar is running" {
81
-
try "at most 3 times every 5s to get pods named 'prometheus-.*-[0-9]$' and verify that '.status.containerStatuses[*].name' is 'config-reloader,prometheus,thanos-sidecar'"
82
-
}
83
-
{{ end }}
84
-
85
80
{{- if and .Values.thanos.query.ingress.grpc.enabled .Values.thanos.query.ingress.grpc.hosts .Values.thanos.query.ingress.grpc.tls (not .Values.ci.enabled ) }}
86
81
@test "Verify the availability of the Thanos Query API Ingress hostname by using the created certificates" {
0 commit comments