Skip to main content
SRE

Thanos

Querier

Thanos Querier implements the Prometheus HTTP API and deduplicates data from multiple stores.

querier.yml
thanos query \
  --http-address=0.0.0.0:9090 \
  --grpc-address=0.0.0.0:10901 \
  --query.replica-label=replica \
  --store=thanos-sidecar-1:10901 \
  --store=thanos-sidecar-2:10901 \
  --store=thanos-store-gateway:10901 \
  --store=thanos-ruler:10901

# Kubernetes service discovery for sidecars:
# --store.sd-files=/etc/thanos/stores.yml
# --store.sd-interval=30s