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

Automate publishing measurement-lab passthrough views #163

Open
stephen-soltesz opened this issue Jul 20, 2023 · 1 comment
Open

Automate publishing measurement-lab passthrough views #163

stephen-soltesz opened this issue Jul 20, 2023 · 1 comment

Comments

@stephen-soltesz
Copy link
Contributor

Problem:

  • Today, we maintain explicit SQL configurations for pass-through views between mlab-oti and measurement-lab.
  • Once created, we separately configure public visibility of these pass-through views to discuss@ users via ACLs.

Idea:

  • Rather than having the cumbersome configurations we maintain in etl-schema for pass-through views - what if we had a simple daemon in the data-processing cluster that, say, once an hour looked for some role or label or other attribute we could add to tables in mlab-oti (maybe with the label value equal to the target name) and this daemon would simply create the public measurement-lab dataset & view automatically?

This idea would be an alternative to fully Terraform managed configurations. Arguably, since this is public facing, we might want more fluid changes. But, that would limit who could mange table selection and publication.

@stephen-soltesz
Copy link
Contributor Author

stephen-soltesz commented Jul 20, 2023

BigQuery tables do have a key/value label mechanism available.

E.g. mlab-oti.ndt.ndt7 could have a label like: passthrough:measurement-lab.ndt.ndt7 and the daemon could do the rest.

Screenshot 2023-07-20 at 2 51 04 PM

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

No branches or pull requests

1 participant