Using thanos query component to query from sidecar #7740
Replies: 3 comments 12 replies
-
Hey there, @rishabhkumar92! I'm here to assist you with any bugs, questions, or contributions you might have. Let's get to the bottom of this together. Yes, it is possible to set up Thanos querier to read from Thanos sidecar's gRPC endpoints without setting up object storage. The Thanos sidecar can expose the StoreAPI to allow Queriers to query Prometheus data without the need for object storage. Here is an example configuration for Thanos sidecar without object storage: prometheus \
--storage.tsdb.max-block-duration=2h \
--storage.tsdb.min-block-duration=2h \
--web.enable-lifecycle thanos sidecar \
--tsdb.path "/path/to/prometheus/data/dir" \
--prometheus.url "http://localhost:9090" Example configuration for Thanos querier: thanos query \
--http-address 0.0.0.0:19192 \ # HTTP Endpoint for Thanos Querier UI
--endpoint 1.2.3.4:19090 \ # Static gRPC Store API Address for the query node to query
--endpoint 1.2.3.5:19090 \ # Also repeatable
--endpoint dnssrv+_grpc._tcp.thanos-store.monitoring.svc # Supports DNS A & SRV records For more details, you can refer to the Thanos documentation [1][2]. |
Beta Was this translation helpful? Give feedback.
-
is
PROMETHEUS_URL points to Grafana Mimir QFE http endpoint. Sidecar:
Query:
and I am querying 9091 with a sample query and other argument. |
Beta Was this translation helpful? Give feedback.
-
cc: @MichaHoffmann |
Beta Was this translation helpful? Give feedback.
-
Hi team,
I am trying to setup thanos sidecar which point to Grafana Mimir's QFE and want to setup querier to read from it without setting up object storage. I am not seeing option to point thanos querier to sidecar's grpc endpoints.
Is it possible to do that?
Beta Was this translation helpful? Give feedback.
All reactions