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

Add IncludeTags to R2 Rollup Options #4277

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

kentzeng12
Copy link
Collaborator

What this PR does / why we need it:

To add new reserved metric tags, we need to add the reserved tag to the initial metric id, and the rollup id otherwise the reserved tag will be lost during the R2 rollup process. Currently to do this, we would need to manually update the R2 rules to filter for the new reserved tag. However, this is a time consuming process because we need to update all R2 rules in the repo to ensure the reserved tag is added to all rollup ids.

To address this issue, in the matcher config, I added functionality to specify a list of "include tags" which are tags that if seen in the metric id, we should add to the rollup id. So if the metric id contains a reserved tag that needs to be added to the rollup id, the forward matching logic will add the reserved tag to the rollup id.

In the future, if there are more reserved tags that R2 forward match should add to rollup ids, we should add those tags in the include tags config.

This PR is an exact copy of a PR I made from my forked repo, however the buildkite check doesn't run on forked repos so making the PR on the main repo: #4270.

@shaan420 shaan420 self-assigned this Jul 18, 2024
@kentzeng12 kentzeng12 enabled auto-merge (squash) July 19, 2024 23:37
@kentzeng12 kentzeng12 disabled auto-merge July 19, 2024 23:39
@kentzeng12 kentzeng12 merged commit 049659f into master Jul 19, 2024
5 checks passed
@kentzeng12 kentzeng12 deleted the zengk/forward_match branch July 19, 2024 23:52
kentzeng12 added a commit that referenced this pull request Jul 22, 2024
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.

None yet

3 participants