Цю сторінку перекладено машинно. Читати англійський оригінал.

Component

core/observability/thanos-query

Thanos Query, the query front end of a Thanos metrics stack. Query answers PromQL requests and fans them out over the StoreAPI to one or more Store Gateways, deduplicating and merging the results. The Store Gateway it queries is wired through its `store` uses-socket: the gateway's host and port arrive on the injection context and compose the StoreAPI endpoint Query dials. Query speaks the StoreAPI over gRPC, so a component wired there that publishes a protocol other than grpc, or none, halts the build; Thanos Store publishes grpc. Query serves its PromQL API and web UI on an HTTP port and exposes its own StoreAPI on a gRPC port so queriers can be layered. Query holds no persistent state of its own — it reads through the Store Gateway — so it renders as a stateless server. Exports its HTTP host, port, and protocol to consumers via the uses topology. Query serves its own metrics in the Prometheus format at /metrics on its HTTP port and publishes that address as `metrics_endpoint`.

Походження

ОфіційнийПідписано ідентичністю підписувача, яку цей каталог визнає офіційним видавцем.
Дайджест вмісту
sha256:c16e73c6c2243df0ff97fead322b9beec35a2740cde16ad03616b93fc58b7403
Опубліковано
2026-11-10T10:13:16Z
Ідентичність підписувача
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Підпис

  • Офіційнийapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:2065882df01222cda0f4130fb96d5110ff120e7aaf716d639b4ce2370b1cc201

Посилання на цю версію

oci://hub.aggrega.ai/component/core/observability/thanos-query:1.0.0

Параметри розробника

Значення, які розробник задає в сутності Aggregate.

Параметрів розробника не оголошено.

Розміри, задані оператором

Розміри інфраструктури, які оператор налаштовує для кожного середовища.

НазваТипТипове значенняОбов’язковеОпис
http_portinteger (min 1024, max 65535)10902ніHTTP port serving the PromQL API and web UI; consumers connect here.
grpc_portinteger (min 1024, max 65535)10901ніgRPC port exposing Query's own StoreAPI, reachable in-cluster only.
external_base_urlstring—ніExternally reachable base URL of the query front end, as assembled at the ingress tier, including any path the ingress serves it under — for example https://thanos.example.com or https://tools.example.com/thanos. The web interface composes from this the link it writes beside every rule expression and every alert it lists, back to its own query page. Where the address carries a path, the links, asset paths and redirects of the web interface's own pages carry that path too. On its own the server would then also move its API and web interface under the path; the Recipe keeps it serving at its root instead, so its health checks and every consumer reaching it through its published host and port are unaffected, and an ingress in front of it maps the address's path onto that root. Omitted, those links point at localhost on the HTTP port, which no browser outside the server's own pod can follow.
engine_versionstringv0.42.0ніThanos container image tag.
computeobject—ні—
overridesobject (open)—ніProvider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

Вихідний контракт

Значення, які цей компонент публікує для споживачів через топологію uses.

НазваТипТипове значенняОбов’язковеОпис
hoststring—такIn-cluster DNS name of the Service fronting the query front end. A dashboard points its data-source address at this name rather than at any single metrics server.
portinteger—такTCP port the query API and web UI are served on. It carries the HTTP port an operator set, never the internal gRPC port.
protocolstring—ніHow the published address is spoken to — `http`, so a consumer composes a data-source URL on that scheme.
metrics_endpointstring—ніThe full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:<port>/metrics` on the HTTP port. Empty where the component serves none reachable.

Сокети uses

Сокети залежностей, через які під’єднується цей компонент. Ціль кожного з’єднання, прокладеного через сокет, має задовольняти його селектор міток, а кожне з’єднання може нести приєднання в слотах, які оголошує сокет. Обов’язковий слот має заповнити кожне з’єднання, яке сутність Aggregate або сутність Release прокладає через сокет.

store

Селектор
component.aggrega.ai/type=server
Ін’єкція
env

Цей сокет не оголошує слотів приєднання, тому з’єднання через нього не несе жодного приєднання.

Слоти приєднання

Іменовані точки прив’язки, у яких сутність Feature приєднується до цього компонента. Селектор слота обмежує, яка сутність Feature може його заповнити, а його список inject визначає, як можна доставити матеріал сутності Feature. Обов’язковий слот має бути прив’язаний у кожному екземплярі, приєднанням в екземплярі або в області вище за нього, а чутливий слот оголошено для роботи з секретним матеріалом. Сутність Feature також може приєднатися під назвою, яку не оголошує жоден слот.

Слотів приєднання не оголошено.

Список дозволених самоін’єкцій

env

Зв’язки

Типізовані ребра до інших опублікованих сутностей і від них. Відсилання без опублікованої цілі відображається як розірване ребро, а не як посилання.

Використовує

Використовується в

Довідка про поняття Component →

Каталог Aggrega — відкритий індекс компонентів, функцій, рецептів і плагінів, які їх рендерять.

Створено на основі спільної дизайн-системи Aggrega.

Конфіденційність