Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Write Metrics to BigQuery #1696

Merged
merged 96 commits into from
Sep 13, 2024
Merged

Conversation

tristanvuong2021
Copy link
Contributor

@tristanvuong2021 tristanvuong2021 commented Jul 18, 2024

feat: Write Metrics to BigQuery

@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@kungfucraig kungfucraig left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 14 files at r13, 1 of 6 files at r17.
Reviewable status: 24 of 36 files reviewed, 3 unresolved discussions (waiting on @SanjayVas, @stevenwarejones, and @tristanvuong2021)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/readers/MeasurementReader.kt line 403 at r17 (raw file):

        .trimIndent()

    private val FULL_VIEW_SQL =

As part of testing, can we look at the query plans for the various queries we run?

…trics-bq

# Conflicts:
#	MODULE.bazel.lock
#	maven_install.json
#	src/main/k8s/dev/kingdom_gke.cue
Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 23 of 36 files reviewed, 3 unresolved discussions (waiting on @kungfucraig, @SanjayVas, and @stevenwarejones)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/readers/MeasurementReader.kt line 403 at r17 (raw file):

Previously, kungfucraig (Craig Wright) wrote…

As part of testing, can we look at the query plans for the various queries we run?

I did look at it. That is why I made query changes in StreamMeasurements.kt.

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Dismissed @SanjayVas and @kungfucraig from 2 discussions.
Reviewable status: 23 of 36 files reviewed, 1 unresolved discussion (waiting on @kungfucraig, @SanjayVas, and @stevenwarejones)

@tristanvuong2021 tristanvuong2021 removed the request for review from stevenwarejones September 10, 2024 15:07
…trics-bq

# Conflicts:
#	MODULE.bazel
#	MODULE.bazel.lock
#	maven_install.json
@tristanvuong2021 tristanvuong2021 changed the title feat!: Write Metrics to BigQuery feat: Write Metrics to BigQuery Sep 10, 2024
Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 22 files at r1, 4 of 21 files at r2, 5 of 16 files at r4, 1 of 4 files at r5, 4 of 10 files at r10, 1 of 5 files at r12, 3 of 14 files at r13, 1 of 3 files at r14, 5 of 8 files at r16, 5 of 6 files at r17, 2 of 5 files at r18, 2 of 3 files at r19, all commit messages.
Reviewable status: 35 of 36 files reviewed, 1 unresolved discussion (waiting on @kungfucraig, @SanjayVas, and @stevenwarejones)

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r19, 4 of 4 files at r20, all commit messages.
Dismissed @kungfucraig from a discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas)

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Dismissed @SanjayVas from a discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas)

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Dismissed @SanjayVas from a discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas)

@tristanvuong2021 tristanvuong2021 requested review from SanjayVas and removed request for SanjayVas September 13, 2024 20:14
Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r14, 8 of 8 files at r16, 5 of 6 files at r17, 2 of 5 files at r18, 3 of 3 files at r19, 4 of 4 files at r20, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @tristanvuong2021)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/readers/MeasurementReader.kt line 403 at r17 (raw file):

        .trimIndent()

    private val FULL_VIEW_SQL =

I thought COMPUTATIONS and FULL give the same result, meaning they use the same query aside from ordering (which isn't part of this constant).


src/main/proto/wfa/measurement/internal/kingdom/bigquerytables/operational_metrics_dataset.proto line 58 at r5 (raw file):

}

message ComputationParticipantsTableRow {

Doesn't this need to get added back in? DuchyMeasurmentLogEntries includes non-error entries with the stages.

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @SanjayVas)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/readers/MeasurementReader.kt line 403 at r17 (raw file):

Previously, SanjayVas (Sanjay Vasandani) wrote…

I thought COMPUTATIONS and FULL give the same result, meaning they use the same query aside from ordering (which isn't part of this constant).

The query is the same aside from ordering, but the building of the result isn't. Although it is only a small difference right now, I will need to include all the log entries. The result of the computation view only includes errors.


src/main/proto/wfa/measurement/internal/kingdom/bigquerytables/operational_metrics_dataset.proto line 58 at r5 (raw file):

Previously, SanjayVas (Sanjay Vasandani) wrote…

Doesn't this need to get added back in? DuchyMeasurmentLogEntries includes non-error entries with the stages.

I was planning to follow up this PR with a new table. This PR has been alive for awhile and I can see some new discussions regarding the new table.

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

@tristanvuong2021 tristanvuong2021 merged commit 7428e7c into main Sep 13, 2024
4 checks passed
@tristanvuong2021 tristanvuong2021 deleted the tristanvuong-write-metrics-bq branch September 13, 2024 23:28
@TNATALI TNATALI added this to the v0.5.9 milestone Oct 9, 2024
tristanvuong2021 added a commit that referenced this pull request Oct 22, 2024
refactor: Remove unneeded measurement view


[This](#1696)
added the view, but
[this](#1823)
removed the need for the new view.
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.

6 participants