本頁面由機器翻譯。閱讀英文原文。

Component

core/observability/loki

A Grafana Loki log-aggregation server. Loki receives log streams from shippers and agents over its HTTP push API, indexes them by label rather than by full-text content, stores them in a chunk object store, and answers log-query and range requests over the same HTTP API. This component models Loki in its single-binary shape: every Loki subsystem — distributor, ingester, querier, compactor — runs inside one process backed by a local filesystem chunk store, so it renders as a single stateful server with a data volume rather than a set of microservices. A memcached may be wired to the optional `chunk_cache` socket to hold decompressed chunks between queries; the per-connection values on that edge — batch size, parallelism, timeout and entry lifetime — tune how this server drives that one cache, and with nothing wired the server runs without a chunk cache. The socket takes one connection, and a second halts the build, as does a target publishing a protocol other than memcached or memcached-tls, or none. Its contract to consumers is that HTTP endpoint: a log shipper pushes streams to it, and a dashboards server reads them back over the query API. It also receives OpenTelemetry logs at the base address it publishes as `otlp_http_endpoint`, and carries `observability.aggrega.ai/logs: otlp-http`, so an OpenTelemetry Collector's `logs` socket takes it. Realized on helm by `loki`, which sources the official Grafana Loki chart, and on compose by `loki`, a compose service running the same image and publishing nothing to the host. Loki serves its own metrics in the Prometheus format at /metrics on its HTTP port, on by default, and every Recipe publishes that address as `metrics_endpoint`.

出處

官方由本目錄認可為官方發布者的簽署身分所簽署。
內容摘要
sha256:f18ddfb195f109038457d006de50752a385ac09898522d173af030fa6f8d5cbd
發布時間
2026-11-10T10:13:09Z
簽署身分
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:e3c0b97a1f971a3f4c1a90a0c14c522f1587e2d3d131e4555d3873539925974f

此版本的參照

oci://hub.aggrega.ai/component/core/observability/loki:1.0.0

開發者參數

開發者在 Aggregate 中設定的值。

名稱型別預設必填描述
retention_periodstring168h否How long stored log streams are kept before the in-process compactor deletes them. Expressed as a Go duration (e.g. `168h` for seven days).

操作員資源規格

操作員依各環境調整的基礎架構資源規格。

名稱型別預設必填描述
source_versionstring—否Source artifact version (Helm chart). Overrides the helm Recipe's default source version; the compose realization pulls no source artifact and ignores it. Changing from default does not guarantee value mapping compatibility.
computeobject—否—
storageobject—否—
overridesobject (open)—否Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

輸出契約

此元件透過 uses 拓撲向使用端發布的值。

名稱型別預設必填描述
hoststring—是Name the push and query API is reached at — the in-cluster Service on helm, the service name on compose. A shipper sending log streams and a dashboard querying them both dial this name.
portinteger—是TCP port the push and query API is served on. Each realization serves the project's own default, so a consumer reads this rather than hard-coding one.
protocolstring—否How the published address is spoken to — `http`, so a consumer reaches both the push and the query paths with an HTTP client.
otlp_http_endpointstring—否The base address OpenTelemetry logs are received at — `http://<host>:<port>/otlp`. An OTLP HTTP exporter given it appends `/v1/logs` itself.
metrics_endpointstring—否The full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:<port>/metrics` on the push and query API. Empty where the component serves none reachable.

Uses 插槽

此元件用來連線的相依插槽。經由插槽連接的每個連線,其目標都必須符合該插槽的標籤選擇器,且每個連線可在該插槽宣告的槽位中帶有附加項目。Aggregate 或 Release 經由該插槽連接的每個連線,都必須提供必填槽位。

chunk_cache

選擇器
component.aggrega.ai/category=datastore
注入
env

經由此插槽的每個連線可填入的槽位

槽位選擇器必填注入敏感描述
server_cafeature.aggrega.ai/kind=secret否file是Optional authority the server checks the cache's certificate against while the cache publishes protocol memcached-tls, where the image does not already trust the authority that signs it. Its Secret holds ca.crt. The Kubernetes realization mounts the whole Secret read-only into the server and names the file in its chunk-cache client; the Compose realization refuses it, since no credential Feature realized there delivers a Secret as files. The build halts on a server_ca publishing no Secret name, and on one wired to a cache served without TLS. Fill it with core/referenced-secret.

附加槽位

Feature 附加到此元件的具名繫結點。槽位的選擇器限制哪個 Feature 可以填入該槽位,其注入清單則指明該 Feature 的內容可以如何傳遞。必填槽位必須在每個實例上繫結,方式是在該實例上或其上層範圍中附加項目;敏感槽位則宣告用於處理機密內容。Feature 也可以附加在沒有任何槽位宣告的名稱之下。

未宣告任何附加槽位。

自我注入允許清單

env

關係

與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。

使用

被使用於

Component 概念參考

Aggrega 目錄:元件、功能、配方,以及負責渲染它們的外掛程式的開放索引。

以共用的 Aggrega 設計系統建置。

隱私權