Trang này được dịch bằng máy. Đọc bản gốc tiếng Anh.

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`.

Nguồn gốc

Chính thứcĐược ký bởi một danh tính ký mà danh mục này công nhận là nhà phát hành chính thức.
Digest nội dung
sha256:c16e73c6c2243df0ff97fead322b9beec35a2740cde16ad03616b93fc58b7403
Đã xuất bản
2026-11-10T10:13:16Z
Danh tính ký
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Chữ ký

  • Chính thứcapplication/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

Tham chiếu ở phiên bản này

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

Tham số của nhà phát triển

Các giá trị mà nhà phát triển đặt trong Aggregate.

Chưa khai báo tham số nào của nhà phát triển.

Định cỡ của người vận hành

Định cỡ hạ tầng mà người vận hành tinh chỉnh theo từng môi trường.

TênKiểuMặc địnhBắt buộcMô tả
http_portinteger (min 1024, max 65535)10902khôngHTTP port serving the PromQL API and web UI; consumers connect here.
grpc_portinteger (min 1024, max 65535)10901khônggRPC port exposing Query's own StoreAPI, reachable in-cluster only.
external_base_urlstring—khôngExternally 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.0khôngThanos container image tag.
computeobject—không—
overridesobject (open)—khôngProvider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

Hợp đồng đầu ra

Các giá trị mà thành phần này xuất bản cho bên tiêu thụ qua cấu trúc liên kết uses.

TênKiểuMặc địnhBắt buộcMô tả
hoststring—có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—có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—khôngHow the published address is spoken to — `http`, so a consumer composes a data-source URL on that scheme.
metrics_endpointstring—khôngThe 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.

Các socket uses

Các socket phụ thuộc mà thành phần này kết nối qua. Đích của mọi kết nối được nối qua một socket phải thỏa mãn bộ chọn nhãn của socket đó, và mỗi kết nối có thể mang theo phần đính kèm trong các slot mà socket khai báo. Một slot bắt buộc phải được đáp ứng bởi mỗi kết nối mà Aggregate hoặc Release nối qua socket.

store

Bộ chọn
component.aggrega.ai/type=server
Tiêm
env

Socket này không khai báo slot đính kèm nào, nên một kết nối qua nó không mang theo phần đính kèm nào.

Slot đính kèm

Các điểm liên kết có tên mà tại đó một Feature được gắn vào thành phần này. Bộ chọn của một slot giới hạn Feature nào có thể lấp đầy nó, và danh sách tiêm của slot nêu cách nội dung của Feature có thể được chuyển giao. Một slot bắt buộc phải được liên kết trên mọi thể hiện, bằng một phần đính kèm trên thể hiện đó hoặc ở một phạm vi phía trên nó, và một slot nhạy cảm được khai báo để xử lý nội dung bí mật. Một Feature cũng có thể được gắn dưới một tên mà không slot nào khai báo.

Chưa khai báo slot đính kèm nào.

Danh sách cho phép tự tiêm

env

Quan hệ

Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.

Sử dụng

Được sử dụng bởi

Tài liệu tham khảo khái niệm Component →

Danh mục Aggrega — chỉ mục mở gồm các thành phần, tính năng, công thức và các plugin kết xuất chúng.

Được xây dựng bằng hệ thống thiết kế dùng chung của Aggrega.

Quyền riêng tư