Skip to content

Conversation

@jeschkies
Copy link
Contributor

@jeschkies jeschkies commented Dec 13, 2024

What this PR does / why we need it:
This changes adds support for the header Accept: application/vnd.apacher.parquet. If this header is set the response for metric and stream queries will response with a Parquet file.

A metrics response has the columns timestamp, labels and value. A stream response has the columns timestamp, labels and line.

The Parquet file can be queried with e.g. DuckDB:
render1734096279010-min

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
@jeschkies jeschkies requested a review from a team as a code owner December 13, 2024 13:57
@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Dec 13, 2024
@jeschkies jeschkies requested a review from JStickler December 13, 2024 14:27
Copy link
Contributor

@chaudum chaudum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@chaudum chaudum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Waiting for @JStickler for docs review.

Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Waiting for @JStickler for docs review.

[docs team] docs updates LGTM

@jeschkies jeschkies merged commit d0c11a6 into grafana:main Dec 18, 2024
62 of 63 checks passed
@jeschkies jeschkies deleted the karsten/parquet-output branch December 18, 2024 15:29
mveitas pushed a commit to mveitas/loki that referenced this pull request Jan 6, 2025
**What this PR does / why we need it**:
This changes adds support for the header `Accept: application/vnd.apacher.parquet`. If this header is set the response for metric and stream queries will response with a Parquet file.

A metrics response has the columns `timestamp`, `labels` and `value`. A stream response has the columns `timestamp`, `labels` and `line`.

Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories

3 participants