Skip to main content
Version: 1.2

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_logs by default, overridden with the X-Greptime-Log-Table-Name header
  • Database: selected with the X-Greptime-DB-Name header

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.