Loki
GreptimeDB implements the Loki Push API, so a client already writing to Loki can write to GreptimeDB by changing the endpoint.
- Endpoint:
POST /v1/loki/api/v1/push - Payload encodings: Snappy-compressed Protobuf (
Content-Type: application/x-protobuf) or Loki JSON (Content-Type: application/json) - Target table:
loki_logsby default, overridden with theX-Greptime-Log-Table-Nameheader - Database: selected with the
X-Greptime-DB-Nameheader
Writes only. Querying uses SQL; LogQL is not supported.
Labels, headers, the resulting data model, and pipeline support are covered in Ingest Data with Loki.