-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Support unnamed groups in carbon receiver regex parser #39137
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
Support unnamed groups in carbon receiver regex parser #39137
Conversation
Please add a changelog. |
Looks like flaky tests
|
Hi @grihabor, I think updating the branch should fix that. |
Moving to draft while you review and attend to the CI, please mark ready to review once CI passes. |
91b31d8
to
970b5af
Compare
Thank you for your review! I've fixed the test, but the pipeline doesn't seem to start. The checks are now passing locally:
Marking "Ready for review" |
PS Checks pass now |
Thank you! |
…y#39137) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adding a feature - support for unnamed groups in carbon receiver regex parser. This makes it possible to parse a wider range of metrics, e.g. optional metric prefix or optional metric tags. <!--Describe what testing was performed and which tests were added.--> #### Testing Added a test for a rule with an optional prefix: `"(prefix\.)?..."` Added a test for a rule with an optional metric label: `"(job=(?P<key_job>[^.]+)\.)?..."` <!--Describe the documentation added.--> #### Documentation Added an example with an optional prefix and an optional metric label
…y#39137) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adding a feature - support for unnamed groups in carbon receiver regex parser. This makes it possible to parse a wider range of metrics, e.g. optional metric prefix or optional metric tags. <!--Describe what testing was performed and which tests were added.--> #### Testing Added a test for a rule with an optional prefix: `"(prefix\.)?..."` Added a test for a rule with an optional metric label: `"(job=(?P<key_job>[^.]+)\.)?..."` <!--Describe the documentation added.--> #### Documentation Added an example with an optional prefix and an optional metric label
…y#39137) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adding a feature - support for unnamed groups in carbon receiver regex parser. This makes it possible to parse a wider range of metrics, e.g. optional metric prefix or optional metric tags. <!--Describe what testing was performed and which tests were added.--> #### Testing Added a test for a rule with an optional prefix: `"(prefix\.)?..."` Added a test for a rule with an optional metric label: `"(job=(?P<key_job>[^.]+)\.)?..."` <!--Describe the documentation added.--> #### Documentation Added an example with an optional prefix and an optional metric label
Description
Adding a feature - support for unnamed groups in carbon receiver regex parser. This makes it possible to parse a wider range of metrics, e.g. optional metric prefix or optional metric tags.
Testing
Added a test for a rule with an optional prefix:
"(prefix\.)?..."
Added a test for a rule with an optional metric label:
"(job=(?P<key_job>[^.]+)\.)?..."
Documentation
Added an example with an optional prefix and an optional metric label