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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service column to BigQuery views 馃搱 #7

Merged
merged 12 commits into from Mar 20, 2024

Conversation

hackebrot
Copy link
Member

This pull request adds a new service column to the various BigQuery views in Four Keys.

We can use this new column to filter data and measure DORA metrics for individual services.

I have also reformatted the SQL queries and removed support for unused platforms to improve comprehensibility.

@hackebrot hackebrot requested a review from a team March 13, 2024 17:14
Copy link

@mtbottle mtbottle left a comment

Choose a reason for hiding this comment

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

Generally looks good to me! Thanks for reformatting and cleanup! 馃殌 I just had one non-blocking question.

Comment on lines +13 to +14
WHEN source LIKE "github%" THEN JSON_EXTRACT_SCALAR(metadata, '$.repository.full_name')
WHEN source LIKE "pagerduty%" THEN JSON_EXTRACT_SCALAR(metadata, '$.event.data.service.summary')

Choose a reason for hiding this comment

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

Are we sure that these will match?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, these won't match. It will require the new services table to join service identifiers across platforms.

But the source field tells us what the context is for service, so we can perform that lookup.

@hackebrot hackebrot requested a review from dlactin March 19, 2024 11:38
Copy link
Member

@dlactin dlactin left a comment

Choose a reason for hiding this comment

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

lgtm!

@hackebrot hackebrot merged commit 572bbfe into main Mar 20, 2024
@hackebrot hackebrot deleted the add-service-column-to-bq-views branch March 20, 2024 15:49
@hackebrot
Copy link
Member Author

Thanks for the reviews! 馃コ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants