Skip to content
Merged
Prev Previous commit
Next Next commit
Add table format to docs
  • Loading branch information
jeschkies committed Dec 13, 2024
commit 15e8d7c9975e1cc9aa51b0784d797bbaa9ab65f8
18 changes: 18 additions & 0 deletions docs/sources/reference/loki-http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,24 @@ curl -G -s "http://localhost:3100/loki/api/v1/query" \
-o result.parquet
```

The Parquet schema is the following for streams:

│ column_name │ column_type │
│ varchar │ varchar │
|-------------|--------------------------|
│ timestamp │ TIMESTAMP WITH TIME ZONE │
│ labels │ MAP(VARCHAR, VARCHAR) │
│ line │ VARCHAR │

and for metrics:

│ column_name │ column_type │
│ varchar │ varchar │
|-------------|--------------------------|
│ timestamp │ TIMESTAMP WITH TIME ZONE │
│ labels │ MAP(VARCHAR, VARCHAR) │
│ line │ DOUBLE │

## Query logs within a range of time

```bash
Expand Down
Loading