Skip to content

[surfacers.bigquery] Add wide_rows mode for one-row-per-EventMetrics output - #1283

Merged
manugarg merged 2 commits into
cloudprober:mainfrom
PovilasV1:bigquery-wide-rows
Apr 10, 2026
Merged

manugarg merged 2 commits into
cloudprober:mainfrom
PovilasV1:bigquery-wide-rows

Conversation

@PovilasV1

@PovilasV1 PovilasV1 commented Apr 3, 2026 •

Copy link
Copy Markdown
Contributor

Adds a new wide_rows option to the BigQuery surfacer that writes one row per EventMetrics instead of one row per metric. In this mode each metric gets its own column, named via metric_name in bigquery_columns, rather
than being fanned out into generic metric_name/metric_value rows.

Map metrics expand into multiple columns using the map key as a suffix (e.g. resp_code_200), and distribution metrics are written as _sum and _count columns.

Resolves the use-case raised in #1076.

@manugarg

manugarg commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Hi @PovilasV1, can you please add a little bit of more description for this change?

@PovilasV1

Copy link
Copy Markdown
Contributor Author

Hi @PovilasV1, can you please add a little bit of more description for this change?

Hi, updated the description. Sorry about that

Comment thread internal/surfacers/bigquery/bigquery.go Resolved
Comment thread internal/surfacers/bigquery/bigquery.go Resolved
Comment thread internal/surfacers/bigquery/bigquery.go Resolved
…output

Adds a new wide_rows option to the BigQuery surfacer that writes one row
per EventMetrics instead of one row per metric. In this mode each metric
gets its own column, named via metric_name in bigquery_columns, rather
than being fanned out into generic metric_name/metric_value rows.

Map metrics expand into multiple columns using the map key as a suffix
(e.g. resp_code_200), and distribution metrics are written as _sum and
_count columns.

Resolves the use-case raised in cloudprober#1076.
@PovilasV1
PovilasV1 force-pushed the bigquery-wide-rows branch from 7d187e8 to 39c0a8c Compare April 9, 2026 11:26
@manugarg
manugarg merged commit e2760cd into cloudprober:main Apr 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants