Skip to content

Commit

Permalink
Configure thanos-query to use thanos-receive as a store for queries (#…
Browse files Browse the repository at this point in the history
…2868)

Also includes some updates to the thanos-receive configuration to
improve performance

Signed-off-by: Brian Carey <[email protected]>
  • Loading branch information
brianmcarey authored Jul 5, 2023
1 parent f10e2c8 commit 5097b5e
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ spec:
- --query.replica-label=replica
- --store=dnssrv+_grpc._tcp.thanos-store.monitoring.svc.cluster.local
- --store=dnssrv+_grpc._tcp.thanos-sidecar.monitoring.svc.cluster.local
# FIXME: use here dns name when prow-workloads load balancer is in place
- --store=169.45.167.206:30901
- --store=dnssrv+_grpc._tcp.thanos-receive.monitoring.svc.cluster.local
- --query.timeout=5m
- --query.lookback-delta=15m
- --query.auto-downsampling
Expand Down Expand Up @@ -615,10 +614,9 @@ data:
hashrings.json: |
[
{
"hashring": "soft-tenants",
"endpoints":
[
"localhost:10901"
"thanos-receive.monitoring.svc.cluster.local:10901"
]
}
]
Expand Down Expand Up @@ -660,8 +658,8 @@ spec:
- --receive.replication-factor=1
- --objstore.config=$(OBJSTORE_CONFIG)
- --tsdb.path=/var/thanos/receive
- --tsdb.retention=15d
- --receive.local-endpoint=$(NAME).thanos-receive.$(NAMESPACE).svc.cluster.local:10901
- --tsdb.retention=7d
- --receive.local-endpoint=thanos-receive.monitoring.svc.cluster.local:10901
- --label=replica="$(NAME)"
- --label=receive="true"
- --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json
Expand Down Expand Up @@ -714,11 +712,9 @@ spec:
periodSeconds: 5
resources:
limits:
cpu: 0.42
memory: 420Mi
memory: 4Gi
requests:
cpu: 0.123
memory: 123Mi
memory: 4Gi
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/thanos/receive
Expand Down

0 comments on commit 5097b5e

Please sign in to comment.