Query
The query component implements the Prometheus HTTP API, which enables PromQL expressions to run against data from all configured Thanos store APIs. It also includes a web interface for querying, which is based on Prometheus' own UI with a couple of minor changes, making users feel right at home. This component is completely stateless and can be scaled horizontally. Due to being compatible with the Prometheus API, it can be used directly in Grafana as a data source of the Prometheus type, enabling drop-in replacement of Prometheus querying for Thanos.
This Thanos component is also running in our test environment, specifically in the global instance, and its configuration can be viewed by running the following instruction:
vagrant@global:~$ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access