Thanos Query
Thanos Query is another of the most fundamental Thanos components. Without it, there’s not much point to Thanos Sidecar. It provides both a web UI and an API that are used to execute PromQL queries across multiple data sources (for example, Prometheus via Thanos Sidecar, metrics in object storage via Thanos Store, and so on).
The web UI will feel familiar to anyone who has used the Prometheus web UI since their functionality and UX are essentially equivalent. The query API is also 100% PromQL compliant and therefore can be used as a Prometheus-typed data source in Grafana. In practice at companies I’ve been at, we’ve even tended to use Thanos Query as our default data source in Grafana.
Thanos Query works by connecting to one or more endpoints that implement Thanos’s gRPC-based StoreAPI. Endpoints can be specified via the repeatable --endpoint
flag. This flag supports both static definitions (for example, --endpoint=192.168.1.2:10901
)...